File tree 9 files changed +23
-23
lines changed 9 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 406
406
// RUN: /Zm \
407
407
// RUN: /Zo \
408
408
// RUN: /Zo- \
409
- // RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s
409
+ // RUN: -### -- %s 2>&1 | FileCheck -DMSG=%errc_ENOENT - check-prefix=IGNORED %s
410
410
// IGNORED-NOT: argument unused during compilation
411
- // IGNORED-NOT: no such file or directory
411
+ // IGNORED-NOT: [[MSG]]
412
412
// Don't confuse /openmp- with the /o flag:
413
413
// IGNORED-NOT: "-o" "penmp-.obj"
414
414
Original file line number Diff line number Diff line change 133
133
// RUN: /Zc:inline \
134
134
// RUN: /Zc:rvalueCast \
135
135
// RUN: /Zc:ternary \
136
- // RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s
136
+ // RUN: -### -- %s 2>&1 | FileCheck -DMSG=%errc_ENOENT - check-prefix=IGNORED %s
137
137
// IGNORED-NOT: argument unused during compilation
138
- // IGNORED-NOT: no such file or directory
138
+ // IGNORED-NOT: [[MSG]]
139
139
140
140
// Negated form warns:
141
141
// RUN: %clang_cl /c \
Original file line number Diff line number Diff line change 6
6
7
7
//--- Argument of '--config' must be existing file, if it is specified by path.
8
8
//
9
- // RUN: not %clang --config somewhere/nonexistent-config-file 2>&1 | FileCheck %s -check-prefix CHECK-NONEXISTENT
10
- // CHECK-NONEXISTENT: configuration file '{{.*}}somewhere{{.}}nonexistent-config-file' cannot be opened: {{[Nn]}}o such file or directory
9
+ // RUN: not %clang --config somewhere/nonexistent-config-file 2>&1 | FileCheck -DMSG=%errc_ENOENT %s -check-prefix CHECK-NONEXISTENT
10
+ // CHECK-NONEXISTENT: configuration file '{{.*}}somewhere{{.}}nonexistent-config-file' cannot be opened: [[MSG]]
11
11
12
12
13
13
//--- All '--config' arguments must be existing files.
14
14
//
15
- // RUN: not %clang --config %S/Inputs/config-4.cfg --config somewhere/nonexistent-config-file 2>&1 | FileCheck %s -check-prefix CHECK-NONEXISTENT
15
+ // RUN: not %clang --config %S/Inputs/config-4.cfg --config somewhere/nonexistent-config-file 2>&1 | FileCheck -DMSG=%errc_ENOENT %s -check-prefix CHECK-NONEXISTENT
16
16
17
17
18
18
//--- Argument of '--config' must exist somewhere in well-known directories, if it is specified by bare name.
Original file line number Diff line number Diff line change 11
11
12
12
// If file in `@file` is a directory, it is an error.
13
13
//
14
- // RUN: not %clang @%S/Inputs -### 2>&1 | FileCheck --check-prefix=DIRECTORY %s
15
- // DIRECTORY: cannot not open file '{{.*}}Inputs': {{[Ii]}}s a directory
14
+ // RUN: not %clang @%S/Inputs -### 2>&1 | FileCheck -DMSG=%errc_EISDIR - -check-prefix=DIRECTORY %s
15
+ // DIRECTORY: cannot not open file '{{.*}}Inputs': [[MSG]]
Original file line number Diff line number Diff line change 1
1
## Show that SIGINT and similar signals don't cause crash messages to be
2
2
## reported.
3
3
# RUN: %python %s wrapper llvm-symbolizer 2> %t.err
4
- # RUN: FileCheck --input-file=%t.err %s
4
+ # RUN: FileCheck -DMSG=%errc_ENOENT - -input-file=%t.err %s
5
5
6
- # CHECK: {{.*}} error: 'foo': {{[Nn]}}o such file or directory
6
+ # CHECK: {{.*}} error: 'foo': [[MSG]]
7
7
# CHECK-NOT: {{.+}}
8
8
9
9
import os
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ RUN: llvm-bcanalyzer -dump %t/basic.macho.remarks.archive.x86_64.dSYM/Contents/R
14
14
15
15
Check that we don't error if we're missing remark files from an archive, but we warn instead.
16
16
Instead of creating a new binary, just remove the remarks prepend path.
17
- RUN: dsymutil -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck %s --check-prefix=CHECK-MISSING
17
+ RUN: dsymutil -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=CHECK-MISSING
18
18
19
- RUN: dsymutil --linker parallel -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck %s --check-prefix=CHECK-MISSING
19
+ RUN: dsymutil --linker parallel -oso-prepend-path=%p/../Inputs %t/basic.macho.remarks.archive.x86_64 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=CHECK-MISSING
20
20
21
21
CHECK: <Meta
22
22
CHECK: <Remark Num
@@ -42,9 +42,9 @@ CHECK: <Remark Num
42
42
CHECK: <Remark Num
43
43
CHECK-NOT: <Remark Num
44
44
45
- CHECK-MISSING: warning: '/remarks/basic1.macho.remarks.x86_64.opt.bitstream': No such file or directory
45
+ CHECK-MISSING: warning: '/remarks/basic1.macho.remarks.x86_64.opt.bitstream': [[MSG]]
46
46
CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic1.macho.remarks.x86_64.o)
47
- CHECK-MISSING-NEXT: warning: '/remarks/basic2.macho.remarks.x86_64.opt.bitstream': No such file or directory
47
+ CHECK-MISSING-NEXT: warning: '/remarks/basic2.macho.remarks.x86_64.opt.bitstream': [[MSG]]
48
48
CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic2.macho.remarks.x86_64.o)
49
- CHECK-MISSING-NEXT: warning: '/remarks/basic3.macho.remarks.x86_64.opt.bitstream': No such file or directory
49
+ CHECK-MISSING-NEXT: warning: '/remarks/basic3.macho.remarks.x86_64.opt.bitstream': [[MSG]]
50
50
CHECK-MISSING-NEXT: note: while processing {{.*}}libbasic.a(basic3.macho.remarks.x86_64.o)
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ define i32 @foo() {
21
21
22
22
; Try to save statistics to an invalid file.
23
23
; RUN: not %gold -plugin %llvmshlibdir/LLVMgold%shlibext -plugin-opt=stats-file=%t2/foo.stats \
24
- ; RUN: -m elf_x86_64 -r -o %t.o %t.bc 2>&1 | FileCheck --check-prefix=ERROR %s
25
- ; ERROR: LLVM gold plugin: No such file or directory
24
+ ; RUN: -m elf_x86_64 -r -o %t.o %t.bc 2>&1 | FileCheck -DMSG=%errc_ENOENT - -check-prefix=ERROR %s
25
+ ; ERROR: LLVM gold plugin: [[MSG]]
Original file line number Diff line number Diff line change 11
11
# RUN: chmod 444 %t/archive.a
12
12
13
13
# RUN: not llvm-ar r %t/archive.a %t/3.txt \
14
- # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a
14
+ # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a -DMSG=%errc_ENOENT
15
15
16
- # ERROR: error: [[FILE]]: no such file or directory
16
+ # ERROR: error: [[FILE]]: [[MSG]]
17
17
18
18
# RUN: not llvm-ar q %t/archive.a %t/3.txt \
19
- # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a
19
+ # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a -DMSG=%errc_ENOENT
20
20
21
21
# RUN: not llvm-ar m %t/archive.a t/1.txt \
22
22
# RUN: FileCheck %s --check-prefix=ERROR-2 -DFILE=%t/archive.a
Original file line number Diff line number Diff line change 3
3
; RUN: not llvm-ctxprof-util nofile.json 2>&1 | FileCheck %s --check-prefix=NO_CMD
4
4
; RUN: not llvm-ctxprof-util invalidCmd --input nofile.json 2>&1 | FileCheck %s --check-prefix=INVALID_CMD
5
5
; RUN: not llvm-ctxprof-util fromJSON nofile.json 2>&1 | FileCheck %s --check-prefix=NO_FLAG
6
- ; RUN: not llvm-ctxprof-util fromJSON --input nofile.json 2>&1 | FileCheck %s --check-prefix=NO_FILE
6
+ ; RUN: not llvm-ctxprof-util fromJSON --input nofile.json 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=NO_FILE
7
7
; RUN: not llvm-ctxprof-util fromJSON --input %S/Inputs/bad.json 2>&1 | FileCheck %s --check-prefix=BAD_JSON
8
8
; RUN: not llvm-ctxprof-util fromJSON --input %S/Inputs/invalid-no-vector.json 2>&1 | FileCheck %s --check-prefix=NO_VECTOR
9
9
; RUN: not llvm-ctxprof-util fromJSON --input %S/Inputs/invalid-no-ctx.json 2>&1 | FileCheck %s --check-prefix=NO_CTX
15
15
; NO_CMD: Unknown subcommand 'nofile.json'
16
16
; INVALID_CMD: Unknown subcommand 'invalidCmd'
17
17
; NO_FLAG: Unknown command line argument 'nofile.json'.
18
- ; NO_FILE: 'nofile.json': No such file or directory
18
+ ; NO_FILE: 'nofile.json': [[MSG]]
19
19
; BAD_JSON: Expected object key
20
20
; NO_VECTOR: expected array
21
21
; NO_CTX: missing value at (root)[0].Guid
You can’t perform that action at this time.
0 commit comments