Author: gbedwell Date: Thu Feb 12 06:41:28 2015 New Revision: 228919 URL: http://llvm.org/viewvc/llvm-project?rev=228919&view=rev Log: Fix dependency generation crash test to run clang and clean up after itself.
Previously the test did not have a RUN: prefix for the clang command. In addition it was leaving behind a tmp file with no permissions causing issues when deleting the build directory on Windows. Differential Revision: http://reviews.llvm.org/D7534 Modified: cfe/trunk/test/Frontend/dependency-generation-crash.c Modified: cfe/trunk/test/Frontend/dependency-generation-crash.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/dependency-generation-crash.c?rev=228919&r1=228918&r2=228919&view=diff ============================================================================== --- cfe/trunk/test/Frontend/dependency-generation-crash.c (original) +++ cfe/trunk/test/Frontend/dependency-generation-crash.c Thu Feb 12 06:41:28 2015 @@ -1,4 +1,8 @@ // 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 -MP -o %t -x c /dev/null 2>&1 | FileCheck %s +// RUN: rm -f %t + +// CHECK: error: unable to open output file + // rdar://9286457 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
