Skip to content

Commit 49dad46

Browse files
Rollup merge of rust-lang#125927 - ferrocene:lw-alloc-unwind-test, r=pietroalbini
Ignore `vec_deque_alloc_error::test_shrink_to_unwind` test on non-unwind targets rust-lang#123803 added this test which requires unwinding to succeed. This conditionally ignores the test on non-unwind targets (as is the case with other tests using `catch_unwind`).
2 parents e38c13a + fcc07af commit 49dad46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alloc/tests/vec_deque_alloc_error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::{
88
};
99

1010
#[test]
11+
#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
1112
fn test_shrink_to_unwind() {
1213
// This tests that `shrink_to` leaves the deque in a consistent state when
1314
// the call to `RawVec::shrink_to_fit` unwinds. The code is adapted from #123369

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy