Skip to content

Commit 9e901eb

Browse files
committed
test: fix the path separator for Evolution.test_rth
Windows uses `\` for the path separator while other targets use `/` Use the correct seprator for calculating the basename of the executable to enable the test on Windows.
1 parent 6a2123f commit 9e901eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

validation-test/Evolution/test_rth.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ let clientIsAfter = true
1212
#endif
1313

1414
let execPath = CommandLine.arguments.first!
15-
// FIXME: Don't hardcode "/" here.
15+
#if os(Windows)
16+
let execName = execPath.split(separator: "\\").last!
17+
#else
1618
let execName = execPath.split(separator: "/").last!
19+
#endif
1720
switch execName {
1821
case "after_after":
1922
precondition(clientIsAfter)

0 commit comments

Comments
 (0)