Driver: Tighten up crash report tests

These tests were a little bit too flexible in terms of filenames.

llvm-svn: 220265
This commit is contained in:
Justin Bogner 2014-10-21 05:13:09 +00:00
parent 4501832555
commit 581a5adfcf
2 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1,7 @@
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null -lstdc++ 2>&1 | FileCheck %s
// FIXME: Investigating. "fatal error: file 'nul' modified since it was first processed"
// XFAIL: mingw32
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK-NEXT: note: diagnostic msg: {{.*}}null-{{.*}}.c

View File

@ -13,17 +13,13 @@
// because of the glob (*.c, *.sh) // because of the glob (*.c, *.sh)
// REQUIRES: shell // REQUIRES: shell
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null -lstdc++ 2>&1 | FileCheck %s
// FIXME: Investigating. "fatal error: file 'nul' modified since it was first processed"
// XFAIL: mingw32
#pragma clang __debug parser_crash #pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at: // CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c // CHECK-NEXT: note: diagnostic msg: {{.*}}crash-report-{{.*}}.c
FOO FOO
// CHECKSRC: FOO // CHECKSRC: FOO
// CHECKSH: -cc1 // CHECKSH: -cc1
// CHECKSH: -main-file-name crash-report.c
// CHECKSH: -D "FOO=BAR" // CHECKSH: -D "FOO=BAR"
// CHECKSH-NOT: -F/tmp/ // CHECKSH-NOT: -F/tmp/
// CHECKSH-NOT: -I /tmp/ // CHECKSH-NOT: -I /tmp/