Skip to content

Commit a7e835c

Browse files
committed
Try to fix linux
1 parent a967371 commit a7e835c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Interpreter/dynamic_replacement_dlclose.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ DynamicallyReplaceable.test("DynamicallyReplaceable") {
4949

5050
expectEqual(2, test())
5151

52+
#if os(Linux)
53+
dlclose(h!)
54+
#elseif os(Windows)
55+
#else
5256
dlclose(h)
57+
#endif
5358

5459
#if os(Linux)
5560
_ = dlopen(target_library_name("Module2"), RTLD_NOW)

0 commit comments

Comments
 (0)