mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 03:48:33 +00:00
Make issue_11588/Test11588 work with a recent swig that converts ints to PyLongObjects
llvm-svn: 156637
This commit is contained in:
parent
95d0117bb3
commit
0c543ea186
@ -59,13 +59,13 @@ class Issue11581TestCase(TestBase):
|
||||
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)])
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user