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
+2
View File
@@ -291,6 +291,7 @@ fn split_to_uninitialized() {
}
#[test]
#[cfg_attr(not(panic = "unwind"), ignore)]
fn split_off_to_at_gt_len() {
fn make_bytes() -> Bytes {
let mut bytes = BytesMut::with_capacity(100);
@@ -1618,6 +1619,7 @@ fn owned_to_vec() {
}
#[test]
#[cfg_attr(not(panic = "unwind"), ignore)]
fn owned_safe_drop_on_as_ref_panic() {
let buf: [u8; 10] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
let drop_counter = SharedAtomicCounter::new();