//! Test helper implementations.
use ;
/// This global stores if a panic already happened.
static PANICKED: AtomicBool = new;
/// Call this at the start of a test to record.
/// Call this at the end of a test to check if a thread panicked, if it did,
/// panic!
///
/// # Panics
/// Panics in the main thread if a panic occured in another thread.