From 15588812cb46232442d4c9f1f688a6d69ad0750f Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Thu, 13 Jun 2024 11:16:39 +0200 Subject: [PATCH] These tests hang or make the box OOM Forwarded: no Gbp-Pq: Topic upstream Gbp-Pq: Name u-hurd-tests.patch --- tests/crashes/115994.rs | 1 + tests/run-make/long-linker-command-lines/foo.rs | 7 +++++++ tests/ui/associated-consts/issue-93775.rs | 1 + tests/ui/issues/issue-74564-if-expr-stack-overflow.rs | 1 + tests/ui/threads-sendsync/mpsc_stress.rs | 1 + 5 files changed, 11 insertions(+) diff --git a/tests/crashes/115994.rs b/tests/crashes/115994.rs index 23d1507136..e0714e5b93 100644 --- a/tests/crashes/115994.rs +++ b/tests/crashes/115994.rs @@ -1,5 +1,6 @@ //@ known-bug: #115994 //@ compile-flags: -Cdebuginfo=2 --crate-type lib +//@ ignore-hurd // To prevent "overflow while adding drop-check rules". use std::mem::ManuallyDrop; diff --git a/tests/run-make/long-linker-command-lines/foo.rs b/tests/run-make/long-linker-command-lines/foo.rs index 9d4a701ad8..f05130fcf0 100644 --- a/tests/run-make/long-linker-command-lines/foo.rs +++ b/tests/run-make/long-linker-command-lines/foo.rs @@ -42,6 +42,13 @@ fn read_linker_args(path: &Path) -> String { } } +#[cfg(target_os = "hurd")] +// Debian: test causes build to fail on hurd +fn main() { + return; +} + +#[cfg(not(target_os = "hurd"))] fn main() { let tmpdir = PathBuf::from(env::var_os("TMPDIR").unwrap()); let ok = tmpdir.join("ok"); diff --git a/tests/ui/associated-consts/issue-93775.rs b/tests/ui/associated-consts/issue-93775.rs index c9044e27e0..a49a280486 100644 --- a/tests/ui/associated-consts/issue-93775.rs +++ b/tests/ui/associated-consts/issue-93775.rs @@ -1,5 +1,6 @@ //@ build-pass // ignore-tidy-linelength +// ignore-hurd // Regression for #93775, needs build-pass to test it. diff --git a/tests/ui/issues/issue-74564-if-expr-stack-overflow.rs b/tests/ui/issues/issue-74564-if-expr-stack-overflow.rs index c0ffed27e6..6693c07d20 100644 --- a/tests/ui/issues/issue-74564-if-expr-stack-overflow.rs +++ b/tests/ui/issues/issue-74564-if-expr-stack-overflow.rs @@ -1,5 +1,6 @@ //@ build-pass // ignore-tidy-filelength +// ignore-hurd #![crate_type = "rlib"] fn banana(v: &str) -> u32 { diff --git a/tests/ui/threads-sendsync/mpsc_stress.rs b/tests/ui/threads-sendsync/mpsc_stress.rs index f5354c60bf..413239e789 100644 --- a/tests/ui/threads-sendsync/mpsc_stress.rs +++ b/tests/ui/threads-sendsync/mpsc_stress.rs @@ -1,6 +1,7 @@ //@ run-pass //@ compile-flags:--test //@ needs-threads +//@ ignore-hurd use std::sync::mpsc::channel; use std::sync::mpsc::TryRecvError; -- 2.30.2