From 6edae59e75ae96b562635721e847562cee7b666d Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 11 Nov 2011 05:12:45 +0000 Subject: [PATCH] test/Misc/serialized-diags.c: Tweak FileCheck expressions to be tolerant to DOSish output. FIXME: For now, " = 0Parse Issueexpected ';' after expression{{XXX}}" would not be matched due to unexpected garbage{{XXX} on some hosts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144374 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Misc/serialized-diags.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Misc/serialized-diags.c b/test/Misc/serialized-diags.c index 31f279180f..5149132b7f 100644 --- a/test/Misc/serialized-diags.c +++ b/test/Misc/serialized-diags.c @@ -8,16 +8,16 @@ void bar() { dragon = dragon + 1 } +// RUN: rm -f %t // RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t 2>&1 /dev/null || true // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s -// RUN: rm -f %t // This test case tests that we can handle multiple diagnostics which contain // FIXITs at different levels (one at the note, another at the main diagnostic). -// CHECK: {{.*}}/serialized-diags.c:3:12: warning: variable 'voodoo' is uninitialized when used here [-Wuninitialized] -// CHECK: Range: {{.*}}/serialized-diags.c:3:12 {{.*}}/serialized-diags.c:3:18 -// CHECK: +-{{.*}}/serialized-diags.c:2:13: note: initialize the variable 'voodoo' to silence this warning [] -// CHECK: +-FIXIT: ({{.*}}/serialized-diags.c:2:13 - {{.*}}/serialized-diags.c:2:13): " = 0Parse Issueexpected ';' after expression" -// CHECK: {{.*}}/serialized-diags.c:8:22: error: expected ';' after expression [] -// CHECK: FIXIT: ({{.*}}/serialized-diags.c:8:22 - {{.*}}/serialized-diags.c:8:22): ";" \ No newline at end of file +// CHECK: {{.*[/\\]}}serialized-diags.c:3:12: warning: variable 'voodoo' is uninitialized when used here [-Wuninitialized] +// CHECK: Range: {{.*[/\\]}}serialized-diags.c:3:12 {{.*[/\\]}}serialized-diags.c:3:18 +// CHECK: +-{{.*[/\\]}}serialized-diags.c:2:13: note: initialize the variable 'voodoo' to silence this warning [] +// CHECK: +-FIXIT: ({{.*[/\\]}}serialized-diags.c:2:13 - {{.*[/\\]}}serialized-diags.c:2:13): " = 0Parse Issueexpected ';' after expression" +// CHECK: {{.*[/\\]}}serialized-diags.c:8:22: error: expected ';' after expression [] +// CHECK: FIXIT: ({{.*[/\\]}}serialized-diags.c:8:22 - {{.*[/\\]}}serialized-diags.c:8:22): ";" -- 2.40.0