diff --git a/crates/tests/no_std/src/lib.rs b/crates/tests/no_std/src/lib.rs index dddcebe6d7..968f6c9d0d 100644 --- a/crates/tests/no_std/src/lib.rs +++ b/crates/tests/no_std/src/lib.rs @@ -11,11 +11,16 @@ struct App; #[cfg(not(test))] fn _test() { - let _ = windows::core::HRESULT(0); + let _ = windows_core::ComObject::new(App); + let _ = windows_registry::CURRENT_USER.create("software\\windows-rs"); + let _ = windows_result::HRESULT(0); + let _ = windows_strings::BSTR::new(); + let _ = windows_sys::core::GUID::from_u128(0); + let _ = windows_version::OsVersion::current(); let _ = windows::core::ComObject::new(App); } -// #[cfg_attr(not(test), panic_handler)] -// fn _panic(_: &core::panic::PanicInfo<'_>) -> ! { -// loop {} -// } +#[cfg_attr(not(test), panic_handler)] +fn _panic(_: &core::panic::PanicInfo<'_>) -> ! { + loop {} +}