Make the assertion message about 32-bit process address byte size more clear.

llvm-svn: 125099
This commit is contained in:
Johnny Chen 2011-02-08 18:31:06 +00:00
parent 898fdbf82d
commit 78bb926f9b
1 changed files with 5 additions and 2 deletions

View File

@ -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")