Skip to content

Commit 85db3a2

Browse files
committed
[clang][deps] Attempt to fix test on Windows
This test fails on Windows due to path separators
1 parent 37b3783 commit 85db3a2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clang/test/ClangScanDeps/header-search-pruning-transitive.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ module X { header "X.h" }
5454
// RUN: sed -e "s|DIR|%/t|g" %t/cdb_with_a.json.template > %t/cdb_with_a.json
5555
// RUN: sed -e "s|DIR|%/t|g" %t/cdb_without_a.json.template > %t/cdb_without_a.json
5656

57-
// RUN: echo -%t > %t/results.json
58-
// RUN: clang-scan-deps -compilation-database %t/cdb_with_a.json -format experimental-full -optimize-args >> %t/results.json
57+
// RUN: clang-scan-deps -compilation-database %t/cdb_with_a.json -format experimental-full -optimize-args > %t/results.json
5958
// RUN: clang-scan-deps -compilation-database %t/cdb_without_a.json -format experimental-full -optimize-args >> %t/results.json
60-
// RUN: cat %t/results.json | sed 's/\\/\//g' | FileCheck %s
59+
// RUN: cat %t/results.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t
6160

62-
// CHECK: -[[PREFIX:.*]]
63-
// CHECK-NEXT: {
61+
// CHECK: {
6462
// CHECK-NEXT: "modules": [
6563
// CHECK-NEXT: {
6664
// CHECK-NEXT: "clang-module-deps": [

0 commit comments

Comments
 (0)