summaryrefslogtreecommitdiffstats
path: root/lldb/test/macosx
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-02-08 18:31:06 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-02-08 18:31:06 +0000
commit78bb926f9b25c2ad7e4eada4e5797d7785d4e975 (patch)
tree37dc95340e35edade754e99e089a7dcfcd582f98 /lldb/test/macosx
parent898fdbf82d622b01365d8724908fe512cd805cf7 (diff)
downloadbcm5719-llvm-78bb926f9b25c2ad7e4eada4e5797d7785d4e975.tar.gz
bcm5719-llvm-78bb926f9b25c2ad7e4eada4e5797d7785d4e975.zip
Make the assertion message about 32-bit process address byte size more clear.
llvm-svn: 125099
Diffstat (limited to 'lldb/test/macosx')
-rw-r--r--lldb/test/macosx/universal/TestUniversal.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/macosx/universal/TestUniversal.py b/lldb/test/macosx/universal/TestUniversal.py
index c17fa14460f..193d04eb68c 100644
--- a/lldb/test/macosx/universal/TestUniversal.py
+++ b/lldb/test/macosx/universal/TestUniversal.py
@@ -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")
OpenPOWER on IntegriCloud