X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibstd%2Funstable%2Fdynamic_lib.rs;h=41ff79bc8845815db4eda5382c676bb04473eb62;hb=20a10ff9c922722da66d52caacee544c7e1ab03d;hp=90cf49cad1ccf2a9553507091bfa31c925ee146b;hpb=c0aadfd76c33ccc26f5e1672243add2e2f73e923;p=rust.git diff --git a/src/libstd/unstable/dynamic_lib.rs b/src/libstd/unstable/dynamic_lib.rs index 90cf49cad1c..41ff79bc884 100644 --- a/src/libstd/unstable/dynamic_lib.rs +++ b/src/libstd/unstable/dynamic_lib.rs @@ -26,7 +26,7 @@ pub struct DynamicLibrary { priv handle: *libc::c_void } impl Drop for DynamicLibrary { - fn drop(&self) { + fn drop(&mut self) { match do dl::check_for_errors_in { unsafe { dl::close(self.handle) @@ -90,6 +90,8 @@ mod test { use libc; #[test] + // #[ignore(cfg(windows))] // FIXME #8818 + #[ignore] // FIXME #9137 this library isn't thread-safe fn test_loading_cosine() { // The math library does not need to be loaded since it is already // statically linked in @@ -120,6 +122,7 @@ fn test_loading_cosine() { #[cfg(target_os = "linux")] #[cfg(target_os = "macos")] #[cfg(target_os = "freebsd")] + #[ignore] // FIXME #9137 this library isn't thread-safe fn test_errors_do_not_crash() { // Open /dev/null as a library to get an error, and make sure // that only causes an error, and not a crash. @@ -135,7 +138,7 @@ fn test_errors_do_not_crash() { #[cfg(target_os = "android")] #[cfg(target_os = "macos")] #[cfg(target_os = "freebsd")] -mod dl { +pub mod dl { use c_str::ToCStr; use libc; use path; @@ -204,7 +207,7 @@ pub enum RTLD { } #[cfg(target_os = "win32")] -mod dl { +pub mod dl { use os; use libc; use path;