r318154 - [tooling] Make compile_flags.txt negative test more hermetic
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 14 07:22:34 PST 2017
Author: sammccall
Date: Tue Nov 14 07:22:34 2017
New Revision: 318154
URL: http://llvm.org/viewvc/llvm-project?rev=318154&view=rev
Log:
[tooling] Make compile_flags.txt negative test more hermetic
Modified:
cfe/trunk/test/Tooling/fixed-database.cpp
Modified: cfe/trunk/test/Tooling/fixed-database.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/fixed-database.cpp?rev=318154&r1=318153&r2=318154&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/fixed-database.cpp (original)
+++ cfe/trunk/test/Tooling/fixed-database.cpp Tue Nov 14 07:22:34 2017
@@ -8,7 +8,8 @@
// RUN: echo "-Dklazz=class" >> %t/compile_flags.txt
// RUN: echo '-std=c++11' >> %t/compile_flags.txt
// RUN: clang-check "%t/Src/test.cpp" 2>&1
-// RUN: not clang-check "%s" 2>&1 | FileCheck "%s" -check-prefix=NODB
+// RUN: echo > %t/compile_flags.txt
+// RUN: not clang-check "%t/Src/test.cpp" 2>&1 | FileCheck "%s" -check-prefix=NODB
// NODB: unknown type name 'klazz'
klazz F{};
More information about the cfe-commits
mailing list