diff --git a/tests/unused_panic.rs b/tests/unused_panic.rs index d9ef4a3..e185a82 100644 --- a/tests/unused_panic.rs +++ b/tests/unused_panic.rs @@ -3,5 +3,9 @@ use qadapt::enter_protected; #[test] #[should_panic] fn guard_without_initialization() { - enter_protected(); + if cfg!(debug_assertions) { + enter_protected(); + } else { + panic!("Intentional") + } }