From 925213b0fa3f9bbbe949326bb89a8d774c05994b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 4 Jul 2013 16:16:58 +0000 Subject: Add 'not' to commands that are expected to fail. This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652 --- clang/test/Tooling/auto-detect-from-source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Tooling/auto-detect-from-source.cpp') diff --git a/clang/test/Tooling/auto-detect-from-source.cpp b/clang/test/Tooling/auto-detect-from-source.cpp index 77e06e781c9..6ff39acdc8c 100644 --- a/clang/test/Tooling/auto-detect-from-source.cpp +++ b/clang/test/Tooling/auto-detect-from-source.cpp @@ -2,7 +2,7 @@ // RUN: mkdir %t // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" -// RUN: clang-check "%t/test.cpp" 2>&1 | FileCheck %s +// RUN: not clang-check "%t/test.cpp" 2>&1 | FileCheck %s // CHECK: C++ requires invalid; -- cgit v1.2.3