Skip to content

Commit 4a2f7c9

Browse files
committed
test: correct paths in DebugInfo/line-directive (NFC)
Adjust the test for Windows path separator.
1 parent 80ee32c commit 4a2f7c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/DebugInfo/line-directive.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func f() {
1212
markUsed("jump directly to def")
1313
}
1414

15-
// RUN: %target-swift-frontend -primary-file %s -S -g -o - | %FileCheck %s
15+
// RUN: %target-swift-frontend -primary-file %/s -S -g -o - | %FileCheck %s
1616
// CHECK: .file [[MAIN:.*]] "{{.*}}line-directive.swift"
1717
// CHECK: .loc [[MAIN]] 1
1818
// CHECK: .file [[ABC:.*]] "abc.swift"
@@ -24,8 +24,8 @@ func f() {
2424
// CHECK: .asciz "{{.*}}test/DebugInfo"
2525

2626
// RUN: %empty-directory(%t)
27-
// RUN: sed -e "s:LINE_DIRECTIVE_DIR:%S:g" %S/Inputs/vfsoverlay.yaml > %t/overlay.yaml
28-
// RUN: %target-swift-frontend -vfsoverlay %t/overlay.yaml -primary-file %S/vfs-relocated-line-directive.swift -S -g -o - | %FileCheck -check-prefix=VFS %s
27+
// RUN: sed -e "s|LINE_DIRECTIVE_DIR|%/S|g" %S/Inputs/vfsoverlay.yaml > %t/overlay.yaml
28+
// RUN: %target-swift-frontend -vfsoverlay %t/overlay.yaml -primary-file %/S/vfs-relocated-line-directive.swift -S -g -o - | %FileCheck -check-prefix=VFS %s
2929
// VFS: .file [[MAIN:.*]] "{{.*}}vfs-relocated-line-directive.swift"
3030
// VFS: .loc [[MAIN]] 1
3131
// VFS: .file [[ABC:.*]] "abc.swift"

0 commit comments

Comments
 (0)