Lines Matching +full:test +full:- +full:windows
1 #[cfg(windows)]
10 fn lib_path() -> std::path::PathBuf { in lib_path()
24 cmd.arg("src/test_helpers.rs").arg("-o").arg(lib_path()); in make_helpers()
26 cmd.arg("--target").arg(target); in make_helpers()
32 .expect("could not compile the test helpers!") in make_helpers()
37 #[test]
42 let f: Symbol<unsafe extern "C" fn(u32) -> u32> = lib.get(b"test_identity_u32\0").unwrap(); in test_id_u32()
56 #[test]
61 let f: Symbol<unsafe extern "C" fn(S) -> S> = lib.get(b"test_identity_struct\0").unwrap(); in test_id_struct()
79 #[test]
84 let f: Symbol<unsafe extern "C" fn(S) -> S> = lib.get(b"test_identity_struct\0").unwrap(); in test_0_no_0()
85 let f2: Symbol<unsafe extern "C" fn(S) -> S> = lib.get(b"test_identity_struct").unwrap(); in test_0_no_0()
90 #[test]
99 #[test]
109 #[test]
115 lib.get::<*mut ()>(b"test\0_does_not_exist\0") in interior_null_fails()
121 #[test]
133 #[test]
136 unsafe fn get<'a, T>(l: &'a Library, _: T) -> Result<Symbol<'a, T>, libloading::Error> { in test_incompatible_type_named_fn()
148 #[test]
155 let help: Symbol<unsafe extern "C" fn() -> u32> = in test_static_u32()
161 #[test]
168 let works: Symbol<unsafe extern "C" fn() -> bool> = in test_static_ptr()
174 #[test]
175 // Something about i686-pc-windows-gnu, makes dll initialisation code call abort when it is loaded
179 #[cfg(not(all(target_arch = "x86", target_os = "windows", target_env = "gnu")))]
187 let _: Symbol<unsafe extern "C" fn(u32) -> u32> = in manual_close_many_times()
200 #[test]
217 #[cfg(windows)]
218 #[test]
220 use libloading::os::windows::Library; in library_this()
223 // SAFE: well-known library without initialisers is loaded. in library_this()
236 #[cfg(windows)]
237 #[test]
239 use libloading::os::windows::{Library, Symbol}; in works_getlasterror()
245 let gle: Symbol<unsafe extern "system" fn() -> DWORD> = lib.get(b"GetLastError").unwrap(); in works_getlasterror()
251 #[cfg(windows)]
252 #[test]
254 use libloading::os::windows::{Library, Symbol}; in works_getlasterror0()
260 let gle: Symbol<unsafe extern "system" fn() -> DWORD> = lib.get(b"GetLastError\0").unwrap(); in works_getlasterror0()
266 #[cfg(windows)]
267 #[test]
269 use libloading::os::windows::Library; in library_open_already_loaded()
271 // Present on Windows systems and NOT used by any other tests to prevent races. in library_open_already_loaded()