forked from OSchip/llvm-project
Make the assertion message about 32-bit process address byte size more clear.
llvm-svn: 125099
This commit is contained in:
parent
898fdbf82d
commit
78bb926f9b
|
@ -67,10 +67,13 @@ class UniversalTestCase(TestBase):
|
|||
# Check whether we have a 32-bit process launched.
|
||||
target = self.dbg.GetSelectedTarget()
|
||||
process = target.GetProcess()
|
||||
self.assertTrue(target.IsValid() and process.IsValid() and
|
||||
self.invoke(process, 'GetAddressByteSize') == 4,
|
||||
self.assertTrue(target.IsValid() and process.IsValid(),
|
||||
"32-bit process launched")
|
||||
|
||||
pointerSize = self.invoke(process, 'GetAddressByteSize')
|
||||
self.assertTrue(pointerSize == 4,
|
||||
"AddressByteSize of 32-bit process should be 4, got %d instead." % pointerSize)
|
||||
|
||||
self.runCmd("continue")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue