File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
; NOFOO-NOT: foo
8
8
9
9
; EMPTY-ERR: FileCheck error: '-' is empty.
10
+ ; EMPTY-ERR-NEXT: FileCheck command line: {{.*}}FileCheck -check-prefix={{.*}}FOO {{.*}}check-empty.txt
10
11
; NO-EMPTY-ERR-NOT: FileCheck error: '-' is empty.
11
12
; NOT-FOUND: error: expected string not found in input
Original file line number Diff line number Diff line change @@ -1298,6 +1298,13 @@ static void AddCheckPrefixIfNeeded() {
1298
1298
CheckPrefixes.push_back (" CHECK" );
1299
1299
}
1300
1300
1301
+ static void DumpCommandLine (int argc, char **argv) {
1302
+ errs () << " FileCheck command line: " ;
1303
+ for (int I = 0 ; I < argc; I++)
1304
+ errs () << " " << argv[I];
1305
+ errs () << " \n " ;
1306
+ }
1307
+
1301
1308
int main (int argc, char **argv) {
1302
1309
sys::PrintStackTraceOnErrorSignal ();
1303
1310
PrettyStackTraceProgram X (argc, argv);
@@ -1331,6 +1338,7 @@ int main(int argc, char **argv) {
1331
1338
1332
1339
if (File->getBufferSize () == 0 && !AllowEmptyInput) {
1333
1340
errs () << " FileCheck error: '" << InputFilename << " ' is empty.\n " ;
1341
+ DumpCommandLine (argc, argv);
1334
1342
return 2 ;
1335
1343
}
1336
1344
You can’t perform that action at this time.
0 commit comments