[Lldb-commits] [lldb] r156637 - /lldb/trunk/test/expression_command/issue_11588/Test11588.py
Filipe Cabecinhas
me at filcab.net
Fri May 11 13:37:34 PDT 2012
Author: filcab
Date: Fri May 11 15:37:34 2012
New Revision: 156637
URL: http://llvm.org/viewvc/llvm-project?rev=156637&view=rev
Log:
Make issue_11588/Test11588 work with a recent swig that converts ints to PyLongObjects
Modified:
lldb/trunk/test/expression_command/issue_11588/Test11588.py
Modified: lldb/trunk/test/expression_command/issue_11588/Test11588.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/issue_11588/Test11588.py?rev=156637&r1=156636&r2=156637&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/issue_11588/Test11588.py (original)
+++ lldb/trunk/test/expression_command/issue_11588/Test11588.py Fri May 11 15:37:34 2012
@@ -59,13 +59,13 @@
addr = addr - 1
self.runCmd("register write r14 %d" % addr)
self.expect("register read r14",
- substrs = ["0x",hex(addr)[2:]])
+ substrs = ["0x",hex(addr)[2:].rstrip("L")]) # Remove trailing 'L' if it exists
self.expect("print *(StgClosure*)$r14",
substrs = ["(StgClosure) $",
"(StgClosure *) &$","0x",
"(long) addr = ",
"(long) load_address = ",
- hex(addr)[2:],
+ hex(addr)[2:].rstrip("L"),
str(addr)])
More information about the lldb-commits
mailing list