-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
FreeBSD: System.Drawing.Printing tests are failing #23786
Comments
fixing dlopen makes the test not fail. Most of the skipped tests comes from libgdiplus. That is separate issues. |
Similar to: https://github.com/dotnet/corefx/issues/25102 which should be taken care of soon once we get the desired API added into the product. https://github.com/dotnet/corefx/issues/17135 |
Some library loading APIs have been recently checked in System.Runtime.InteropServices.netcoreapp.cs. Is it too early to update LibcupsNative.cs#L18-L22 to resolve this issue; something like: - IntPtr lib = Interop.Libdl.dlopen("libcups.so", Interop.Libdl.RTLD_NOW);
+ IntPtr lib = Marshal.LoadLibrary("libcups.so");
if (lib == IntPtr.Zero)
{
- lib = Interop.Libdl.dlopen("libcups.so.2", Interop.Libdl.RTLD_NOW);
+ lib = Marshal.LoadLibrary("libcups.so.2");
} |
I'll take a look. Many other parts of netcore would put the actual library name to Interop/Library.cs instead of embedding names inside of the specific code. |
@wfurt, this one was updated in Feb dotnet/corefx#35548. I think we just need to build and test it (once FreeBSD builds are restored). :) |
probably. I think this was mostly about loading, not even test execution. |
seems no longer applicable. |
=== TEST EXECUTION SUMMARY ===
System.Drawing.Common.Tests Total: 1731, Errors: 0, Failed: 31, Skipped: 1327, Time: 1.415s
~/git/corefx/bin/tests/System.Drawing.Common.Tests/netcoreapp-FreeBSD-Debug-x64
This is because FreeBSD has dlopen in libc instead of libdl.
This may be simple as updating src/Common/src/Interop/Unix/Interop.Libraries.cs
libcups.so seems to exit but no testing has been done.
This is part of https://github.com/dotnet/corefx/issues/1626
The text was updated successfully, but these errors were encountered: