Make issue_11588/Test11588 work with a recent swig that converts ints to PyLongObjects

llvm-svn: 156637
This commit is contained in:
Filipe Cabecinhas 2012-05-11 20:37:34 +00:00
parent 95d0117bb3
commit 0c543ea186

View File

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