diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-11 05:12:45 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-11 05:12:45 +0000 |
commit | 6edae59e75ae96b562635721e847562cee7b666d (patch) | |
tree | ef1a7b9c12f770018bde09bf698b7e5d55c8f48b /test/Misc | |
parent | 59efe266b804330f4c1f3a1b0ff783e67dd90378 (diff) |
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
Diffstat (limited to 'test/Misc')
-rw-r--r-- | test/Misc/serialized-diags.c | 14 |
1 files 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): ";" |