Skip to content

Commit 31553f5

Browse files
committed
Fix bug with the test helper method
1 parent 510cca8 commit 31553f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidumpYaml.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from lldbsuite.test.decorators import *
88
from lldbsuite.test.lldbtest import *
99
from lldbsuite.test import lldbutil
10-
from dataclass import dataclass
1110

1211

1312
class AddressRange:
@@ -52,10 +51,10 @@ def validate_regions_saved_correctly(
5251
# Validate we can't read the original_region
5352
core_process.ReadMemory(
5453
expected_invalid_region.begin,
55-
expected_invalid_region.end - expected_invalid_region.end,
54+
expected_invalid_region.end - expected_invalid_region.begin,
5655
error,
5756
)
58-
self.assertTrue(error.Success(), error.GetCString())
57+
self.assertTrue(error.Fail(), error.GetCString())
5958

6059
def test_saving_sub_memory_range(self):
6160
"""

0 commit comments

Comments
 (0)