about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukas.wirth@ferrous-systems.com>2024-06-03 13:46:56 +0200
committerLukas Wirth <lukas.wirth@ferrous-systems.com>2024-06-03 13:46:56 +0200
commitd392c50ca35d6d9a5e575467e3350ff798ab9930 (patch)
treed6b8821a86cf34d1d4590d86f104376d39b15580
parent1d52972dd8592edf4026aa577c8ce69acc0ac2d1 (diff)
downloadrust-d392c50ca35d6d9a5e575467e3350ff798ab9930.tar.gz
rust-d392c50ca35d6d9a5e575467e3350ff798ab9930.zip
Ignore `vec_deque_alloc_error::test_shrink_to_unwind` test on non-unwind targets
-rw-r--r--library/alloc/tests/vec_deque_alloc_error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/tests/vec_deque_alloc_error.rs b/library/alloc/tests/vec_deque_alloc_error.rs
index c11f4556da9..8b516ddbc5c 100644
--- a/library/alloc/tests/vec_deque_alloc_error.rs
+++ b/library/alloc/tests/vec_deque_alloc_error.rs
@@ -8,6 +8,7 @@ use std::{
 };
 
 #[test]
+#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
 fn test_shrink_to_unwind() {
     // This tests that `shrink_to` leaves the deque in a consistent state when
     // the call to `RawVec::shrink_to_fit` unwinds. The code is adapted from #123369