diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
| commit | 38500d63e14ce340236840f60d356cdefb56a52c (patch) | |
| tree | 17edbec446ce9b50d2f215a483b83afb293a635d /lldb/test/API/functionalities/vtable/TestVTableValue.py | |
| parent | 1a3d5daaef7a6a63448a497da3eff7fc9e23df26 (diff) | |
| parent | 27f30029741ecf023baece7b3dde1ff9011ffefc (diff) | |
Merge branch 'main' into users/meinersbur/flang_runtime_split-headersusers/meinersbur/flang_runtime_split-headers
Diffstat (limited to 'lldb/test/API/functionalities/vtable/TestVTableValue.py')
| -rw-r--r-- | lldb/test/API/functionalities/vtable/TestVTableValue.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/test/API/functionalities/vtable/TestVTableValue.py b/lldb/test/API/functionalities/vtable/TestVTableValue.py index bfc910614afa..f0076ea28f75 100644 --- a/lldb/test/API/functionalities/vtable/TestVTableValue.py +++ b/lldb/test/API/functionalities/vtable/TestVTableValue.py @@ -2,7 +2,6 @@ Make sure the getting a variable path works and doesn't crash. """ - import lldb import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.decorators import * @@ -142,7 +141,12 @@ class TestVTableValue(TestBase): "\x01\x01\x01\x01\x01\x01\x01\x01" if is_64bit else "\x01\x01\x01\x01" ) error = lldb.SBError() - process.WriteMemory(vtable_addr, data, error) + bytes_written = process.WriteMemory(vtable_addr, data, error) + + self.assertSuccess(error) + self.assertGreater( + bytes_written, 0, "Failed to overwrite first entry in vtable" + ) scribbled_child = vtable.GetChildAtIndex(0) self.assertEqual( |
