u-hurd-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Wed, 12 Jun 2024 15:33:10 +0000 (17:33 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 12 Jun 2024 15:33:10 +0000 (17:33 +0200)
These tests hang or make the box OOM

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 db788fe6e6af1d2facf2521ef1061d97e3ab9317..ae4a64e4594d17cd5d392ec6592661318a9a0f47 100644 (file)
@@ -1,5 +1,6 @@
 // build-pass
 // ignore-tidy-linelength
+// ignore-hurd
 
 // Regression for #93775, needs build-pass to test it.
 
index 36e9932602fb035ae668baa819915bbb57b88f7a..19c04b6ace6f5fa34a72a251cd41a370f267374e 100644 (file)
@@ -1,5 +1,6 @@
 // build-pass
 // ignore-tidy-filelength
+// ignore-hurd
 #![crate_type = "rlib"]
 
 fn banana(v: &str) -> u32 {
index c2e1912deb7aa21828c22b30805e7db532e887e2..a0e7b6d6bbb38bb26f20698fb7b65d2c847b6487 100644 (file)
@@ -1,6 +1,7 @@
 // run-pass
 // compile-flags:--test
 // ignore-emscripten
+// ignore-hurd
 
 use std::sync::mpsc::channel;
 use std::sync::mpsc::TryRecvError;