[llvm] b8337bc - [llvm-size] Add test for invalid conversion spec on error (#128941)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 11:55:43 PST 2025
Author: Vitaly Buka
Date: 2025-02-28T11:55:40-08:00
New Revision: b8337bc5126d2728f84ce0e06bd019c486203b31
URL: https://github.com/llvm/llvm-project/commit/b8337bc5126d2728f84ce0e06bd019c486203b31
DIFF: https://github.com/llvm/llvm-project/commit/b8337bc5126d2728f84ce0e06bd019c486203b31.diff
LOG: [llvm-size] Add test for invalid conversion spec on error (#128941)
Follow up to #128447.
Added:
Modified:
llvm/test/tools/llvm-size/radix.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-size/radix.test b/llvm/test/tools/llvm-size/radix.test
index 31956ff12895f..77d7b24b3f588 100644
--- a/llvm/test/tools/llvm-size/radix.test
+++ b/llvm/test/tools/llvm-size/radix.test
@@ -109,19 +109,20 @@
## Case 9: Bad values.
# RUN: not llvm-size %t1.o --radix=0 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=0
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=0
# RUN: not llvm-size %t1.o --radix=1 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=1
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=1
# RUN: not llvm-size %t1.o --radix=2 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=2
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=2
# RUN: not llvm-size %t1.o --radix=32 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=32
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=32
# RUN: not llvm-size %t1.o --radix=-1 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=-1
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=-1
# RUN: not llvm-size %t1.o --radix=bad 2>&1 \
-# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=bad
+# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=bad
# BAD-VAL: {{.*}}llvm-size{{.*}}: error: --radix value should be one of: 8, 10, 16
+# BAD-VAL: 1 2 4 7 7 [[FILE1]]
--- !ELF
FileHeader:
More information about the llvm-commits
mailing list