aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/dependency-generation-crash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/dependency-generation-crash.c')
-rw-r--r--test/Frontend/dependency-generation-crash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Frontend/dependency-generation-crash.c b/test/Frontend/dependency-generation-crash.c
index 181bb71f1b09..2fc3348bed29 100644
--- a/test/Frontend/dependency-generation-crash.c
+++ b/test/Frontend/dependency-generation-crash.c
@@ -1,4 +1,5 @@
-// RUN: touch %t
-// RUN: chmod 0 %t
-// %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null
+// RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o %t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s
+
+// CHECK: error: unable to open output file
+
// rdar://9286457