From 49470f1eacca6aa5ab0f860347aa282a79323161 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Thu, 9 Feb 2023 10:43:13 -0800 Subject: [PATCH] Remove test case that tries to allocate impossible amounts The sanitizer bots are failing with this test; they impose a maximum 0x10000000000 size on allocations, and malloc on darwin will let me malloc that much. The alternative to keep this would be to break it out into a seperate test in TestProcessAIP and skip that if it's on the sanitizer, but this is seeming too fragile IMO so I'm punting it entirely. --- lldb/test/API/python_api/process/TestProcessAPI.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lldb/test/API/python_api/process/TestProcessAPI.py b/lldb/test/API/python_api/process/TestProcessAPI.py index afcc9d7..c56053d 100644 --- a/lldb/test/API/python_api/process/TestProcessAPI.py +++ b/lldb/test/API/python_api/process/TestProcessAPI.py @@ -73,22 +73,6 @@ class ProcessAPITestCase(TestBase): exe=False, startstr=b'x') - if self.platformIsDarwin(): - # Try to read an impossibly large amount of memory; swig - # will try to malloc it and fail, we should get an error - # result. - error = lldb.SBError() - bigsize = sys.maxsize - 8; - content = process.ReadMemory( - val.AddressOf().GetValueAsUnsigned(), - bigsize, error) - if error.Success(): - self.assertFalse(error.Success(), "SBProcessReadMemory claims to have " - "successfully read 0x%x bytes" % bigsize) - if self.TraceOn(): - print("Tried to read 0x%x bytes, got error message: %s" % - (bigsize, error.GetCString())) - # Read (char *)my_char_ptr. val = frame.FindValue("my_char_ptr", lldb.eValueTypeVariableGlobal) self.DebugSBValue(val) -- 2.7.4