about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-10 22:16:42 +0100
committerGitHub <noreply@github.com>2024-03-10 22:16:42 +0100
commit217d00494fdb6f5bb20d77f9a15855d0750ecd96 (patch)
tree2b5e053d8c7f3ac985d91c26efe29420a2bc6fb8
parentaf69f4c48c1e1cfbb9ba43b376edcfbdd8cfbca4 (diff)
parent1dd47e0a17c07b1efd420c95873fab0ff5e5d0ce (diff)
Rollup merge of #122275 - RalfJung:std-oom, r=workingjubilee
disable OOM test in Miri

Needed for https://github.com/rust-lang/miri-test-libstd
-rw-r--r--library/std/src/io/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/io/tests.rs b/library/std/src/io/tests.rs
index c306de3039f..eb5d5988768 100644
--- a/library/std/src/io/tests.rs
+++ b/library/std/src/io/tests.rs
@@ -694,6 +694,8 @@ fn read_buf_full_read() {
 }
 
 #[test]
+// Miri does not support signalling OOM
+#[cfg_attr(miri, ignore)]
 // 64-bit only to be sure the allocator will fail fast on an impossible to satsify size
 #[cfg(target_pointer_width = "64")]
 fn try_oom_error() {