Skip to content

Commit 855d4b5

Browse files
committed
Try skipping the test on Windows
1 parent 88e6348 commit 855d4b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ void printf_deceptive_newline() {
5555
}
5656

5757
void printf_utf8_text() {
58+
// UNSUPPORTED: system-windows
5859
// Hex encodes U+4F60 U+597D U+4E16 U+754C (Hello world) in UTF-8
5960
printf("\xE4\xBD\xA0\xE5\xA5\xBD\xE4\xB8\x96\xE7\x95\x8C\n");
6061
// CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print]
61-
// CHECK-FIXES: std::println("{{.+}}");
62+
// CHECK-FIXES: std::println("你好世界");
6263
}
6364

6465
void printf_crlf_newline() {
@@ -311,10 +312,11 @@ void fprintf_simple() {
311312
}
312313

313314
void fprintf_utf8_text() {
315+
// UNSUPPORTED: system-windows
314316
// Hex encodes U+4F60 U+597D U+4E16 U+754C (Hello world) in UTF-8
315317
fprintf(stderr, "\xE4\xBD\xA0\xE5\xA5\xBD\xE4\xB8\x96\xE7\x95\x8C\n");
316318
// CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'fprintf' [modernize-use-std-print]
317-
// CHECK-FIXES: std::println(stderr, "{{.+}}");
319+
// CHECK-FIXES: std::println(stderr, "你好世界");
318320
}
319321

320322
void std_printf_simple() {

0 commit comments

Comments
 (0)