Skip to content

Commit fee6b9c

Browse files
committed
Fix test on Windows
1 parent 67f3a25 commit fee6b9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/test/ClangScanDeps/modules-pch-common-stale.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module mod_tu_extra { header "mod_tu_extra.h" }
1111

1212
//--- mod_common.h
1313
#define MOD_COMMON_MACRO 0
14-
1514
//--- mod_tu.h
1615
#include "mod_common.h"
1716
#if MOD_COMMON_MACRO
@@ -41,7 +40,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }
4140
// RUN: clang-scan-deps -format experimental-full -o %t/deps_tu_clean.json -- \
4241
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h -F %t \
4342
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache
44-
// RUN: FileCheck --input-file=%t/deps_tu_clean.json %s --check-prefix=CHECK-TU-CLEAN -DPREFIX=%/t
43+
// RUN: cat %t/deps_tu_clean.json | sed 's:\\\\\?:/:g' | FileCheck %s --check-prefix=CHECK-TU-CLEAN -DPREFIX=%/t
4544
// CHECK-TU-CLEAN: {
4645
// CHECK-TU-CLEAN-NEXT: "modules": [
4746
// CHECK-TU-CLEAN-NEXT: {
@@ -110,7 +109,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }
110109
// RUN: clang-scan-deps -format experimental-full -o %t/deps_tu_incremental.json -- \
111110
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h -F %t \
112111
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache
113-
// RUN: FileCheck --input-file=%t/deps_tu_incremental.json %s --check-prefix=CHECK-TU-INCREMENTAL -DPREFIX=%/t
112+
// RUN: cat %t/deps_tu_incremental.json | sed 's:\\\\\?:/:g' | FileCheck %s --check-prefix=CHECK-TU-INCREMENTAL -DPREFIX=%/t
114113
// CHECK-TU-INCREMENTAL: {
115114
// CHECK-TU-INCREMENTAL-NEXT: "modules": [
116115
// CHECK-TU-INCREMENTAL-NEXT: {

0 commit comments

Comments
 (0)