Skip to content

Commit b8337bc

Browse files
authored
[llvm-size] Add test for invalid conversion spec on error (#128941)
Follow up to #128447.
1 parent 494f672 commit b8337bc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/test/tools/llvm-size/radix.test

+7-6
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,20 @@
109109

110110
## Case 9: Bad values.
111111
# RUN: not llvm-size %t1.o --radix=0 2>&1 \
112-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=0
112+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=0
113113
# RUN: not llvm-size %t1.o --radix=1 2>&1 \
114-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=1
114+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=1
115115
# RUN: not llvm-size %t1.o --radix=2 2>&1 \
116-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=2
116+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=2
117117
# RUN: not llvm-size %t1.o --radix=32 2>&1 \
118-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=32
118+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=32
119119
# RUN: not llvm-size %t1.o --radix=-1 2>&1 \
120-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=-1
120+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=-1
121121
# RUN: not llvm-size %t1.o --radix=bad 2>&1 \
122-
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=bad
122+
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=bad
123123

124124
# BAD-VAL: {{.*}}llvm-size{{.*}}: error: --radix value should be one of: 8, 10, 16
125+
# BAD-VAL: 1 2 4 7 7 [[FILE1]]
125126

126127
--- !ELF
127128
FileHeader:

0 commit comments

Comments
 (0)