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>
Mon, 24 Jun 2024 06:25:58 +0000 (08:25 +0200)
Forwarded: no

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

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 db238c0cf1a92627b8a574a6e87e66144ec1a976..c8ad6b86ef294cb9c47deba0d89ece751cfa7aba 100644 (file)
@@ -44,6 +44,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;