Skip to content

Commit

Permalink
duplicate panic handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jul 29, 2024
1 parent 2a40261 commit c943804
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crates/tests/no_std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit c943804

Please sign in to comment.