summaryrefslogtreecommitdiffstats
path: root/library/backtrace/tests/concurrent-panics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/backtrace/tests/concurrent-panics.rs')
-rw-r--r--library/backtrace/tests/concurrent-panics.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/library/backtrace/tests/concurrent-panics.rs b/library/backtrace/tests/concurrent-panics.rs
index 470245cc9..a44a26771 100644
--- a/library/backtrace/tests/concurrent-panics.rs
+++ b/library/backtrace/tests/concurrent-panics.rs
@@ -9,17 +9,11 @@ const PANICS: usize = 100;
const THREADS: usize = 8;
const VAR: &str = "__THE_TEST_YOU_ARE_LUKE";
+mod common;
+
fn main() {
- // These run in docker containers on CI where they can't re-exec the test,
- // so just skip these for CI. No other reason this can't run on those
- // platforms though.
- // Miri does not have support for re-execing a file
- if cfg!(unix)
- && (cfg!(target_arch = "arm")
- || cfg!(target_arch = "aarch64")
- || cfg!(target_arch = "s390x"))
- || cfg!(miri)
- {
+ // If we cannot re-exec this test, there's no point in trying to do it.
+ if common::cannot_reexec_the_test() {
println!("test result: ok");
return;
}