Skip to content

Commit 3a41d33

Browse files
committed
test: avoid windows path separators in test
Use the POSIX path separators for the test, a subsequent change will add an explicit test for windows path separators when fixing the JSON emission.
1 parent d1bb98b commit 3a41d33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ScanDependencies/unicode_filename.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend -scan-dependencies %s %S/Inputs/unicode_filёnamё.swift -o %t/deps.json
2+
// RUN: %target-swift-frontend -scan-dependencies %/s %/S/Inputs/unicode_filёnamё.swift -o %t/deps.json
33

44
// Check the contents of the JSON output
55
// RUN: %FileCheck %s < %t/deps.json
@@ -11,6 +11,6 @@ print(foo())
1111
// CHECK-NEXT: {
1212
// CHECK-NEXT: "modulePath": "deps.swiftmodule",
1313
// CHECK-NEXT: "sourceFiles": [
14-
// CHECK-NEXT: "{{.*}}ScanDependencies{{/|\\}}unicode_filename.swift",
15-
// CHECK-NEXT: "{{.*}}ScanDependencies{{/|\\}}Inputs{{/|\\}}unicode_filёnamё.swift"
14+
// CHECK-NEXT: "{{.*}}ScanDependencies/unicode_filename.swift",
15+
// CHECK-NEXT: "{{.*}}ScanDependencies/Inputs/unicode_filёnamё.swift"
1616
// CHECK-NEXT: ],

0 commit comments

Comments
 (0)