]> granicus.if.org Git - clang/commitdiff
PR19601: testcase improvement
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Thu, 1 May 2014 19:36:13 +0000 (19:36 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Thu, 1 May 2014 19:36:13 +0000 (19:36 +0000)
The test can now catch all cases:
 - no removal of the 'no-integrated-as' flag
 - bogus removal of the flag, like when the remove_if was not followed by an erase

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207787 91177308-0d34-0410-b5e6-96231b3b80d8

test/Tooling/multi-jobs.cpp

index 36e3b3424d447555ac127485854f7b3a0d20edbc..980ade41fdf6f2002f73627268529c9c632d7fc7 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: not clang-check "%s" -- -no-integrated-as -c 2>&1 | FileCheck %s
-// RUN: not clang-check "%s" -- -target x86_64-win32 -no-integrated-as -c 2>&1 | FileCheck %s
+// The following test uses multiple time the same '-no-integrated-as' flag in order to make sure those flags are really skipped, and not just overwritten by luck :
+// RUN: not clang-check "%s" -- -target x86_64-win32 -c -no-integrated-as -no-integrated-as -no-integrated-as 2>&1 | FileCheck %s
 
 // CHECK: C++ requires
 invalid;