Run tests under panic=abort (#749)

This commit is contained in:
Alice Ryhl
2024-12-10 22:30:27 +01:00
committed by GitHub
parent d0a14deeb5
commit f7072c9267
4 changed files with 20 additions and 2 deletions
+4 -2
View File
@@ -7,7 +7,7 @@ use bytes::{Buf, Bytes};
#[global_allocator]
static LEDGER: Ledger = Ledger::new();
const LEDGER_LENGTH: usize = 2048;
const LEDGER_LENGTH: usize = 1024 * 1024;
struct Ledger {
alloc_table: [(AtomicPtr<u8>, AtomicUsize); LEDGER_LENGTH],
@@ -31,9 +31,11 @@ impl Ledger {
.is_ok()
{
entry_size.store(size, Ordering::SeqCst);
break;
return;
}
}
panic!("Ledger ran out of space.");
}
fn remove(&self, ptr: *mut u8) -> usize {