[compiler-rt] [Test][Darwin] Disable test on watchos due to memory restraints (PR #135671)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 13:31:21 PDT 2025


https://github.com/thetruestblue created https://github.com/llvm/llvm-project/pull/135671

Because of the nature of this test (mmap stress-test) it tests too large of memory allocations to be stable on watchos. WatchOS has memory limits that can lead to the termination of this process before it reaches the limit set by the flag. It is guaranteed to occur if a test device is under heavy load. disable on watchOS.

rdar://147222346

>From 8bff740ef5af52fc5c59d8e61bfcb3a7a7d95d7b Mon Sep 17 00:00:00 2001
From: thetruestblue <bgaston2 at apple.com>
Date: Tue, 8 Apr 2025 14:53:50 -0700
Subject: [PATCH] [Test][Darwin] Disable test on watchos due to memory
 considerations

Because of the nature of this test (mmap stress-test) it tests too large of memory allocations to test on watchos. WatchOS has memory limits that can lead to the termination of this test before it reaches the limit set by the flag. We are going to disable on watchOS for now.

rdar://147222346
---
 compiler-rt/test/asan/TestCases/Posix/mmap_limit_mb.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compiler-rt/test/asan/TestCases/Posix/mmap_limit_mb.cpp b/compiler-rt/test/asan/TestCases/Posix/mmap_limit_mb.cpp
index 87ac5b2925ed0..ed187e4481a4f 100644
--- a/compiler-rt/test/asan/TestCases/Posix/mmap_limit_mb.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/mmap_limit_mb.cpp
@@ -1,5 +1,9 @@
 // Test the mmap_limit_mb flag.
 //
+// stress-test isn't reliable on watchOS due to space limitations
+// UNSUPPORTED: watchos
+//
+//
 // RUN: %clangxx_asan -O2 %s -o %t
 // RUN: %run %t 20 16
 // RUN: %run %t 30 1000000



More information about the llvm-commits mailing list