diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2016-03-03 13:43:23 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-03-03 13:43:23 +0000 |
| commit | 65c02ec83785e6e4ddb656d7bc33d7242ef0737d (patch) | |
| tree | 7cd4f44e3941aa6ab3e3a02d4696e2147c585c83 | |
| parent | 0d67e4b5d6698d3655835207ac42a8e478a4a1d8 (diff) | |
| download | bcm5719-llvm-65c02ec83785e6e4ddb656d7bc33d7242ef0737d.tar.gz bcm5719-llvm-65c02ec83785e6e4ddb656d7bc33d7242ef0737d.zip | |
[clang-tidy] Improve the robustness of a test.
llvm-svn: 262618
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp b/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp index a5aa556cb85..12ee464bbee 100644 --- a/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp @@ -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 } |

