Skip to content

Commit d056297

Browse files
committed
Fix dynamic_replacement test on devices
We need the absolute path to the dylib
1 parent 8944665 commit d056297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Interpreter/dynamic_replacement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ DynamicallyReplaceable.test("DynamicallyReplaceable") {
133133
#elseif os(Windows)
134134
_ = LoadLibraryA(target_library_name("Module2"))
135135
#else
136-
_ = dlopen(target_library_name("Module2"), RTLD_NOW)
136+
_ = dlopen(executablePath+target_library_name("Module2"), RTLD_NOW)
137137
#endif
138138
checkExpectedResults(forOriginalLibrary: false)
139139
}

0 commit comments

Comments
 (0)