summaryrefslogtreecommitdiffstats
path: root/clang/test/Tooling/fixed-database.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-11-14 15:22:34 +0000
committerSam McCall <sam.mccall@gmail.com>2017-11-14 15:22:34 +0000
commited1b3f71ff8d24f1fcd4ad9f5cebf58ae4a0b233 (patch)
treef925e73611700eea7cc0756042e82fa6680a792a /clang/test/Tooling/fixed-database.cpp
parente7329a78825f22f367cf194a894894fc889042a3 (diff)
downloadbcm5719-llvm-ed1b3f71ff8d24f1fcd4ad9f5cebf58ae4a0b233.tar.gz
bcm5719-llvm-ed1b3f71ff8d24f1fcd4ad9f5cebf58ae4a0b233.zip
[tooling] Make compile_flags.txt negative test more hermetic
llvm-svn: 318154
Diffstat (limited to 'clang/test/Tooling/fixed-database.cpp')
-rw-r--r--clang/test/Tooling/fixed-database.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Tooling/fixed-database.cpp b/clang/test/Tooling/fixed-database.cpp
index e0cdb1e51e4..73d0779258b 100644
--- a/clang/test/Tooling/fixed-database.cpp
+++ b/clang/test/Tooling/fixed-database.cpp
@@ -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{};
OpenPOWER on IntegriCloud