Commit a226df0e authored by Hero Bird's avatar Hero Bird
Browse files

[pdsl] Remove last remaining std dependencies from pdsl_core

parent 184e197c
......@@ -16,11 +16,10 @@
use super::*;
use std::cell::Cell;
use core::cell::{Cell, RefCell};
use hashbrown::HashMap;
use hashbrown::hash_map::Entry;
use std::cell::RefCell;
/// An entry in the storage of the test environment.
///
......@@ -253,7 +252,7 @@ impl TestEnvData {
} else {
Self::FAILURE
};
std::process::exit(exit_code)
core::process::exit(exit_code)
}
}
......
......@@ -74,7 +74,7 @@ impl CellChunkAlloc {
chunks_off:
// We need `u64::max_value()` here.
// This depends on work on the Key API
// to allow for `std::ops::Add<u64>`.
// to allow for `core::ops::Add<u64>`.
//
// As first iteration this should suffice our needs
// as long as we allocate the `CellChunkAlloc` at last.
......
......@@ -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() -> () + std::panic::UnwindSafe
where F: FnOnce() -> () + core::panic::UnwindSafe
{
setup();
let result = std::panic::catch_unwind(|| {
let result = core::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