-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Issue #25137 #25175
Fix Issue #25137 #25175
Conversation
- Invert boolean value returned by Windows FreeLibrary so it matches that of POSIX dlclose - Add test of jl_dlclose/Libdl.dlclose to test/libdl.jl
This looks great to me, thanks for your contribution @jdjohnston! |
libdl test failure on Win32 looks related; Win64 passed. |
test/libdl.jl
Outdated
@test dl != C_NULL | ||
|
||
@test Libdl.dlclose(dl) | ||
@test !Libdl.dlclose(dl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is failing on win32, according to Appveyor
If it's line #197 that's failing, perhaps Win32 FreeLibrary doesn't error on calling it twice on the same handle. That only makes sense to me if the refcnt was > 1 before the first call. Without a Win32 Windows machine, this is going to be difficult to debug. If indeed it is line #197 and unless someone can suggest a more reliable method to have FreeLibrary fail (other than a NULL handle, which is trapped by jl_dlclose), I would recommend deleting the line from the PR. :( |
Or just change it to |
@staticfloat @StefanKarpinski , PR updated as recommended |
that of POSIX dlclose