[clang] a0ef52c - Fix windows build
Alex Brachet via cfe-commits
cfe-commits at lists.llvm.org
Tue May 31 10:32:06 PDT 2022
Author: Alex Brachet
Date: 2022-05-31T17:31:55Z
New Revision: a0ef52cc102504c4282dec7001664ee020396681
URL: https://github.com/llvm/llvm-project/commit/a0ef52cc102504c4282dec7001664ee020396681
DIFF: https://github.com/llvm/llvm-project/commit/a0ef52cc102504c4282dec7001664ee020396681.diff
LOG: Fix windows build
Added:
Modified:
clang/test/Driver/emit-reproducer.c
Removed:
################################################################################
diff --git a/clang/test/Driver/emit-reproducer.c b/clang/test/Driver/emit-reproducer.c
index fa9d71463a66..b8d6841077c4 100644
--- a/clang/test/Driver/emit-reproducer.c
+++ b/clang/test/Driver/emit-reproducer.c
@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir %t
-// RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" > %t.rsp
+// RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp
// RUN: not %clang -DFATAL @%t.rsp -gen-reproducer=off 2>&1 | FileCheck %s --check-prefix=NOT
// RUN: not %clang -DFATAL @%t.rsp -fno-crash-diagnostics 2>&1 | FileCheck %s --check-prefix=NOT
@@ -29,8 +29,8 @@
// RUN: not %clang -gen-reproducer=badvalue 2>&1 | FileCheck %s --check-prefix=BAD-VALUE
// BAD-VALUE: Unknown value for -gen-reproducer=: 'badvalue'
-// CHECK: note: diagnostic msg: {{.*}}emit-reproducer{{.*}}.c
-// NOT-NOT: note: diagnostic msg: {{.*}}emit-reproducer{{.*}}.c
+// CHECK: note: diagnostic msg: {{.*}}emit-reproducer-{{.*}}.c
+// NOT-NOT: note: diagnostic msg: {{.*}}emit-reproducer-{{.*}}.c
#ifdef FATAL
#pragma clang __debug crash
More information about the cfe-commits
mailing list