[libcxx-commits] [libcxx] 5df7b45 - [libc++][Android] Disable pbump2gig for Android

Ryan Prichard via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 9 15:16:40 PST 2022


Author: Ryan Prichard
Date: 2022-12-09T15:16:20-08:00
New Revision: 5df7b45ae4b501b2f95bb4a2f0b22f1721a1e61d

URL: https://github.com/llvm/llvm-project/commit/5df7b45ae4b501b2f95bb4a2f0b22f1721a1e61d
DIFF: https://github.com/llvm/llvm-project/commit/5df7b45ae4b501b2f95bb4a2f0b22f1721a1e61d.diff

LOG: [libc++][Android] Disable pbump2gig for Android

Android devices frequently don't have enough memory to run this test.

e.g. On the API 33 x86-64 emulator with 2GiB RAM, the test triggers the
OOM Killer, the device reboots, and then `adb shell` exits with status
0 and no output.

Reviewed By: danalbert, #libc, Mordante

Differential Revision: https://reviews.llvm.org/D139502

Added: 
    

Modified: 
    libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
index 968f1d05efe77..4c63cd1ab31d2 100644
--- a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
+++ b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
@@ -21,6 +21,11 @@
 // allocation failure when attempting to allocate the 2GiB string.
 // UNSUPPORTED: no-exceptions
 
+// Android devices frequently don't have enough memory to run this test. Rather
+// than throw std::bad_alloc, exhausting memory tends to trigger the OOM Killer
+// and/or crash the device (killing adb, rebooting it, etc).
+// UNSUPPORTED: android
+
 #include <sstream>
 #include <cassert>
 #include "test_macros.h"


        


More information about the libcxx-commits mailing list