From 5bec154e58ec89f6bbda531155d2a41799bf94a5 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 21 Oct 2014 05:13:09 +0000 Subject: [PATCH] Driver: Tighten up crash report tests These tests were a little bit too flexible in terms of filenames. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220265 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/crash-report-null.test | 7 +++++++ test/Driver/crash-report.c | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 test/Driver/crash-report-null.test diff --git a/test/Driver/crash-report-null.test b/test/Driver/crash-report-null.test new file mode 100644 index 0000000000..477dd28df3 --- /dev/null +++ b/test/Driver/crash-report-null.test @@ -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 diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c index da1ff950fb..f407a08e96 100644 --- a/test/Driver/crash-report.c +++ b/test/Driver/crash-report.c @@ -13,17 +13,13 @@ // because of the glob (*.c, *.sh) // 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 // 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 // CHECKSRC: FOO // CHECKSH: -cc1 +// CHECKSH: -main-file-name crash-report.c // CHECKSH: -D "FOO=BAR" // CHECKSH-NOT: -F/tmp/ // CHECKSH-NOT: -I /tmp/ -- 2.50.1