Skip to content

Commit 3a6c5eb

Browse files
authored
Merge pull request #25609 from mikeash/dlopen-race-test-fix-5.1
[5.1][Test] Fix the dlopen_race test to work with remote-run.
2 parents b299e16 + 5497360 commit 3a6c5eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/dlopen_race.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -emit-library -o %t/dlopen_race.dylib %S/Inputs/dlopen_race_dylib.swift
33
// RUN: %target-build-swift -o %t/dlopen_race %s
4-
// RUN: %target-run %t/dlopen_race
4+
// RUN: %target-run %t/dlopen_race %t/dlopen_race.dylib
55
// REQUIRES: executable_test
66
// REQUIRES: objc_interop
77

@@ -45,7 +45,7 @@ DlopenRaceTests.test("race") {
4545
add_image_count += 1
4646
})
4747

48-
let dylibPath = CommandLine.arguments[0] + ".dylib"
48+
let dylibPath = CommandLine.arguments.last!
4949

5050
let beforeCount = add_image_count
5151
let handle = dlopen(dylibPath, RTLD_LAZY)

0 commit comments

Comments
 (0)