Skip to content

Commit 3f410e8

Browse files
committed
fix test
1 parent d4f3ed2 commit 3f410e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// RUN: clang-tidy -checks=-*,readability-magic-numbers %t.cpp -- 2>&1 | FileCheck %s --check-prefix=CHECK-NORMAL
2-
// RUN: clang-tidy -checks=-*,readability-magic-numbers -quiet %t.cpp -- 2>&1 | FileCheck %s --check-prefix=CHECK-QUIET
1+
// RUN: clang-tidy -checks=-*,readability-magic-numbers %s -- 2>&1 | FileCheck %s --check-prefix=CHECK-NORMAL
2+
// RUN: clang-tidy -checks=-*,readability-magic-numbers -quiet %s -- 2>&1 | FileCheck %s --check-prefix=CHECK-QUIET
33

44
// Normal mode should show warning count
55
// CHECK-NORMAL: 1 warning generated
66
// CHECK-NORMAL: warning: 42 is a magic number
77

8-
// Quiet mode should suppress warning count
9-
// CHECK-QUIET-NOT: 1 warning generated
8+
// Quiet mode should suppress warning count but show diagnostic
109
// CHECK-QUIET: warning: 42 is a magic number
10+
// CHECK-QUIET-NOT: {{[0-9]+}} warning{{s?}} generated
1111

1212
int main() {
13-
int x = 42;
13+
int x = 42; // This will trigger readability-magic-numbers
1414
}

0 commit comments

Comments
 (0)