We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b299e16 + 5497360 commit 3a6c5ebCopy full SHA for 3a6c5eb
test/stdlib/dlopen_race.swift
@@ -1,7 +1,7 @@
1
// RUN: %empty-directory(%t)
2
// RUN: %target-build-swift -emit-library -o %t/dlopen_race.dylib %S/Inputs/dlopen_race_dylib.swift
3
// RUN: %target-build-swift -o %t/dlopen_race %s
4
-// RUN: %target-run %t/dlopen_race
+// RUN: %target-run %t/dlopen_race %t/dlopen_race.dylib
5
// REQUIRES: executable_test
6
// REQUIRES: objc_interop
7
@@ -45,7 +45,7 @@ DlopenRaceTests.test("race") {
45
add_image_count += 1
46
})
47
48
- let dylibPath = CommandLine.arguments[0] + ".dylib"
+ let dylibPath = CommandLine.arguments.last!
49
50
let beforeCount = add_image_count
51
let handle = dlopen(dylibPath, RTLD_LAZY)
0 commit comments