summaryrefslogtreecommitdiffstats
path: root/library/alloc/src/slice/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/alloc/src/slice/tests.rs')
-rw-r--r--library/alloc/src/slice/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/slice/tests.rs b/library/alloc/src/slice/tests.rs
index f674530aa..54bc4e77b 100644
--- a/library/alloc/src/slice/tests.rs
+++ b/library/alloc/src/slice/tests.rs
@@ -187,6 +187,7 @@ std::thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
#[test]
#[cfg_attr(target_os = "emscripten", ignore)] // no threads
+#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
fn panic_safe() {
panic::update_hook(move |prev, info| {
if !SILENCE_PANIC.with(|s| s.get()) {