From 73eb2098180c460e24eeb575efc545bdc8efcf84 Mon Sep 17 00:00:00 2001 From: Evgeniy Reizner Date: Thu, 20 Feb 2020 03:18:57 +0200 Subject: [PATCH] Ignore debug related tests in release mode. Closes #9 --- tests/tests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tests.rs b/tests/tests.rs index 3ce69640caf7..bc4004344d72 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -49,6 +49,7 @@ fn invalid_flag_01() { assert!(args.contains("v")); } +#[cfg(debug_assertions)] #[test] #[should_panic] fn invalid_flag_02() { @@ -56,6 +57,7 @@ fn invalid_flag_02() { assert!(args.contains(["v", "--version"])); } +#[cfg(debug_assertions)] #[test] #[should_panic] fn invalid_flag_03() { @@ -63,6 +65,7 @@ fn invalid_flag_03() { assert!(args.contains(["-v", "-version"])); } +#[cfg(debug_assertions)] #[test] #[should_panic] fn invalid_flag_04() { -- 2.24.1