Skip to content

Commit

Permalink
Ignore instead of cfg out
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed Dec 4, 2024
1 parent 3adf6ff commit 2045c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ fn split_to_uninitialized() {
}

#[test]
#[cfg(panic = "unwind")]
#[cfg_attr(not(panic = "unwind"), ignore)]
fn split_off_to_at_gt_len() {
fn make_bytes() -> Bytes {
let mut bytes = BytesMut::with_capacity(100);
Expand Down Expand Up @@ -1619,7 +1619,7 @@ fn owned_to_vec() {
}

#[test]
#[cfg(panic = "unwind")]
#[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();
Expand Down

0 comments on commit 2045c71

Please sign in to comment.