[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:32:02 PDT 2025


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

>From 9f83ac0b34f89e2c3590356b459e15ed2f500f88 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 | 3 +++
 1 file changed, 3 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..2af572c9e645f 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,8 @@
 // Test the mmap_limit_mb flag.
 //
+// Unstable on watchOS devices under memory pressure.
+// 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