aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2023-02-09 10:43:13 -0800
committerJason Molenda <jason@molenda.com>2023-02-09 10:44:40 -0800
commit49470f1eacca6aa5ab0f860347aa282a79323161 (patch)
treeadcc0deb307bba7b22b50c7e1ab2a8d18275273b /lldb/test/API/python_api
parent84728a3d75496ff3f48436f968a01ba2c05ee37e (diff)
downloadllvm-49470f1eacca6aa5ab0f860347aa282a79323161.zip
llvm-49470f1eacca6aa5ab0f860347aa282a79323161.tar.gz
llvm-49470f1eacca6aa5ab0f860347aa282a79323161.tar.bz2
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.
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/process/TestProcessAPI.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/lldb/test/API/python_api/process/TestProcessAPI.py b/lldb/test/API/python_api/process/TestProcessAPI.py
index afcc9d7c..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)