From 42754635ba2b339bb2c67084d0e42147d4fc84f4 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 6 Dec 2018 23:22:30 -0500 Subject: [PATCH] Pass tests in release mode --- tests/unused_panic.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") + } }