[Lldb-commits] [lldb] r125099 - /lldb/trunk/test/macosx/universal/TestUniversal.py
Johnny Chen
johnny.chen at apple.com
Tue Feb 8 10:31:06 PST 2011
Author: johnny
Date: Tue Feb 8 12:31:06 2011
New Revision: 125099
URL: http://llvm.org/viewvc/llvm-project?rev=125099&view=rev
Log:
Make the assertion message about 32-bit process address byte size more clear.
Modified:
lldb/trunk/test/macosx/universal/TestUniversal.py
Modified: lldb/trunk/test/macosx/universal/TestUniversal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/TestUniversal.py?rev=125099&r1=125098&r2=125099&view=diff
==============================================================================
--- lldb/trunk/test/macosx/universal/TestUniversal.py (original)
+++ lldb/trunk/test/macosx/universal/TestUniversal.py Tue Feb 8 12:31:06 2011
@@ -67,10 +67,13 @@
# 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")
More information about the lldb-commits
mailing list