Skip to content

Commit c692b4b

Browse files
committed
tests: Skip const OOM tests on aarch64-unknown-linux-gnu
Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist. Intended to avoid confusion in cases like #135952. Prerequisite for #135960.
1 parent 8231e85 commit c692b4b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/ui/consts/large_const_alloc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//@ only-64bit
22
// on 32bit and 16bit platforms it is plausible that the maximum allocation size will succeed
3+
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
4+
//@ ignore-aarch64-unknown-linux-gnu
35

46
const FOO: () = {
57
// 128 TiB, unlikely anyone has that much RAM

tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
44
// Needs the max type size to be much bigger than the RAM people typically have.
55
//@ only-64bit
6+
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
7+
//@ ignore-aarch64-unknown-linux-gnu
68

79
pub struct Data([u8; (1 << 47) - 1]);
810
const _: &'static Data = &Data([0; (1 << 47) - 1]);

0 commit comments

Comments
 (0)