about summary refs log tree commit diff
path: root/src/test/ui/numbers-arithmetic
diff options
context:
space:
mode:
authorDavid Koloski <djkoloski@gmail.com>2021-12-03 15:32:51 +0000
committerDavid Koloski <djkoloski@gmail.com>2021-12-09 22:03:52 +0000
commitea68758299a89556e67f0bfffffb19c0c8346e8a (patch)
treecfaa63a0c8e70dfba8e3204bf38df53d31cbca51 /src/test/ui/numbers-arithmetic
parent0b42deaccc2cbe17a68067aa5fdb76104369e1fd (diff)
Add needs-unwind to tests that depend on panicking
This directive isn't automatically set by compiletest or x.py, but can
be turned on manually for targets that require it.
Diffstat (limited to 'src/test/ui/numbers-arithmetic')
-rw-r--r--src/test/ui/numbers-arithmetic/int-abs-overflow.rs1
-rw-r--r--src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/numbers-arithmetic/int-abs-overflow.rs b/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
index 9c6dff7e1a6..d63ba8cb03e 100644
--- a/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
+++ b/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
@@ -1,6 +1,7 @@
 // run-pass
 // compile-flags: -C overflow-checks=on
 // ignore-emscripten no threads support
+// needs-unwind
 
 use std::thread;
 
diff --git a/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs b/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
index 101c5d50b20..f857d4f4c7f 100644
--- a/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
+++ b/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
@@ -1,5 +1,6 @@
 // run-pass
 // compile-flags: -C debug_assertions=yes
+// needs-unwind
 // ignore-wasm32-bare compiled with panic=abort by default
 // ignore-emscripten dies with an LLVM error