Commit 1bab2790 authored by Hero Bird's avatar Hero Bird
Browse files

[pdsl_core] Make use of std where possible (in tests)

parent 959fc39b
......@@ -218,7 +218,7 @@ primitives_impl!(u32, bytes4_to_u32, u32_to_bytes4);
primitives_impl!(u64, bytes8_to_u64, u64_to_bytes8);
primitives_impl!(u128, bytes16_to_u128, u128_to_bytes16);
#[cfg(test)]
#[cfg(all(test, feature = "std"))]
mod tests {
use super::*;
......
......@@ -252,7 +252,7 @@ impl TestEnvData {
} else {
Self::FAILURE
};
core::process::exit(exit_code)
std::process::exit(exit_code)
}
}
......
......@@ -13,10 +13,10 @@ fn teardown() {}
/// This executes general setup routines before executing
/// the test and general tear-down procedures after executing.
pub(crate) fn run_test<F>(test: F) -> ()
where F: FnOnce() -> () + core::panic::UnwindSafe
where F: FnOnce() -> () + std::panic::UnwindSafe
{
setup();
let result = core::panic::catch_unwind(|| {
let result = std::panic::catch_unwind(|| {
test()
});
teardown();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment