These tests hang or make the box OOM
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 13 Jun 2024 09:16:39 +0000 (11:16 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 4 Sep 2024 18:13:19 +0000 (20:13 +0200)
Forwarded: no

Gbp-Pq: Topic upstream
Gbp-Pq: Name u-hurd-tests.patch

tests/crashes/115994.rs
tests/run-make/long-linker-command-lines/foo.rs
tests/ui/associated-consts/issue-93775.rs
tests/ui/issues/issue-74564-if-expr-stack-overflow.rs
tests/ui/threads-sendsync/mpsc_stress.rs

index 23d1507136f7ca62ff0d2a24fb9a63eb9bba8589..e0714e5b93e0e0c92b08447dd3fd26c1bd11ebda 100644 (file)
@@ -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;
index 9d4a701ad8769dbe6b0f1c164994f7cc8a8e92dc..f05130fcf0d4d27c3fbf6bd66d7e3b0a05226f4b 100644 (file)
@@ -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");
index c9044e27e0e7f7692a65c662da042f0e7b329c92..a49a280486ac811fa4ad6068eab57f56a1ceafa9 100644 (file)
@@ -1,5 +1,6 @@
 //@ build-pass
 // ignore-tidy-linelength
+// ignore-hurd
 
 // Regression for #93775, needs build-pass to test it.
 
index c0ffed27e6fb4687d6bd7b2e82f65f1ddc274ce3..6693c07d20bd6dc92184f6c2b8c192b63811e4ab 100644 (file)
@@ -1,5 +1,6 @@
 //@ build-pass
 // ignore-tidy-filelength
+// ignore-hurd
 #![crate_type = "rlib"]
 
 fn banana(v: &str) -> u32 {
index f5354c60bfce9beca1985c1ff309230e784e5fe9..413239e789173120b48629b1ac200ebc2dbef511 100644 (file)
@@ -1,6 +1,7 @@
 //@ run-pass
 //@ compile-flags:--test
 //@ needs-threads
+//@ ignore-hurd
 
 use std::sync::mpsc::channel;
 use std::sync::mpsc::TryRecvError;