Browse Source

Add a release-only test for `is_active()` behavior

no_panic_unused
Bradlee Speice 2 years ago
parent
commit
8df83a56b1
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      tests/inactive_release.rs

+ 10
- 0
tests/inactive_release.rs View File

@@ -0,0 +1,10 @@
use qadapt::QADAPT;

#[global_allocator]
static Q: QADAPT = QADAPT;

#[cfg(not(debug_assertions))]
#[test]
fn release_only_inactive() {
assert!(!qadapt::is_active());
}

Loading…
Cancel
Save