From a325b416d2fbdc3171d37c0cfe85bd2e71091ae9 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Tue, 14 Nov 2017 15:22:34 +0000 Subject: [PATCH] [tooling] Make compile_flags.txt negative test more hermetic git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318154 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Tooling/fixed-database.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Tooling/fixed-database.cpp b/test/Tooling/fixed-database.cpp index e0cdb1e51e..73d0779258 100644 --- a/test/Tooling/fixed-database.cpp +++ b/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{}; -- 2.50.1