Skip to content

Commit 57666fd

Browse files
authored
Merge pull request #25388 from compnerd/based-on-name
2 parents d878aed + 9e901eb commit 57666fd

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)