[clang-tidy] Improve the robustness of a test.
authorGabor Horvath <xazax.hun@gmail.com>
Thu, 3 Mar 2016 13:43:23 +0000 (13:43 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Thu, 3 Mar 2016 13:43:23 +0000 (13:43 +0000)
llvm-svn: 262618

clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp

index a5aa556..12ee464 100644 (file)
@@ -1,5 +1,4 @@
-// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 > %t
-// RUN: FileCheck --input-file=%t %s
+// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 | FileCheck %s
 
 // Note: This test verifies that, the checker does not emit any warning for
 //       files that do not compile.
@@ -8,6 +7,6 @@ bool g();
 
 void f() {
   if (g());
-  // CHECK-NOT: :[[@LINE-1]]:11: warning: potentially unintended semicolon [misc-suspicious-semicolon]
+  // CHECK-NOT: [misc-suspicious-semicolon]
   int a
 }