Remove test case that tries to allocate impossible amounts
authorJason Molenda <jason@molenda.com>
Thu, 9 Feb 2023 18:43:13 +0000 (10:43 -0800)
committerJason Molenda <jason@molenda.com>
Thu, 9 Feb 2023 18:44:40 +0000 (10:44 -0800)
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

index afcc9d7..c56053d 100644 (file)
@@ -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)