]> granicus.if.org Git - clang/commitdiff
More workarounds for PR10867.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 22:33:14 +0000 (22:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 22:33:14 +0000 (22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169437 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/serialized-diags-frontend.c
test/Misc/serialized-diags-no-category.c
test/Misc/serialized-diags.c
test/PCH/missing-file.cpp

index 453ed1470aaa6da3af7174ea66b128546bbc3e37..7eab021937b771fa0577672b832e8eba1f82ab2e 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: rm -f %t
-// RUN: %clang -fsyntax-only %s -Wblahblah --serialize-diagnostics %t > /dev/null 2>&1 || true
+// RUN: %clang -fsyntax-only %s -Wblahblah --serialize-diagnostics %t > /dev/null 2>&1
 // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
 
 // This test case tests that we can handle frontend diagnostics.
index 3074892e0ebbb026c86671c0ee377c2c1dff7e5a..1b0f2043b5f80c4cd36bd16f75e1dc5546664656 100644 (file)
@@ -2,7 +2,7 @@
 #error bar
 
 // RUN: rm -f %t
-// RUN: %clang -ferror-limit=1 -fsyntax-only %s --serialize-diagnostics %t > /dev/null 2>&1 || true
+// RUN: not %clang -ferror-limit=1 -fsyntax-only %s --serialize-diagnostics %t > /dev/null 2>&1
 // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
 
 // This test case tests that we can handle both fatal errors and errors without categories.
index ae4611ba66722621136d55ee37781419055cef0b..1290b4ea9f33bb314495f1183d80b5275b4a0b56 100644 (file)
@@ -31,7 +31,7 @@ void rdar11040133() {
 }
 
 // RUN: rm -f %t
-// RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.diag > /dev/null 2>&1 || true
+// RUN: not %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.diag > /dev/null 2>&1
 // RUN: c-index-test -read-diagnostics %t.diag > %t 2>&1
 // RUN: FileCheck --input-file=%t %s
 
index 7dd11d4561a8e7fd112997b7f8d6c2687b3e16d6..5f258eacc1c99846f2a29b5e558a2e63e5b7c6d0 100644 (file)
@@ -7,7 +7,8 @@
 
 // %t.h might be touched by scanners as a hot file on Windows,
 // to fail to remove %.h with single run.
-// RUN: rm %t.h || rm %t.h || rm %t.h
+// FIXME: Do we really want to work around bugs in virus checkers here?
+// RUN: (rm %t.h || rm %t.h || rm %t.h)
 
 // Check diagnostic with location in original source:
 // RUN: not %clang_cc1 -include-pch %t.h.pch -emit-obj -o %t.o %s 2> %t.stderr