diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/core/asmblock.py | 2 | ||||
| -rwxr-xr-x | test/ir/ir2C.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/core/asmblock.py b/test/core/asmblock.py index eb7b54b2..7f0dbc5f 100644 --- a/test/core/asmblock.py +++ b/test/core/asmblock.py @@ -41,6 +41,8 @@ assert len(blocks.pendings) == 0 assert len(blocks.nodes()) == 17 assert len(blocks.edges2constraint) == len(blocks.edges()) assert len(blocks.edges()) == 24 +assert blocks.getby_offset(0x63).lines[0].offset == 0x5f +assert blocks.getby_offset(0x69).lines[0].offset == 0x69 ## Convert to dot open("graph.dot", "w").write(blocks.dot()) diff --git a/test/ir/ir2C.py b/test/ir/ir2C.py index a966938b..c84473c3 100755 --- a/test/ir/ir2C.py +++ b/test/ir/ir2C.py @@ -40,7 +40,7 @@ class TestIrIr2C(unittest.TestCase): self.translationTest( ExprOp('bsr', *args[:1]), r'x86_bsr(0x0, 0x20)') self.translationTest( - ExprOp('cpuid0', *args[:2]), r'cpuid0(0x0, 0x1)') + ExprOp('cpuid', *args[:2]), r'cpuid(0x0, 0x1)') self.translationTest( ExprOp('fcom0', *args[:2]), r'fcom0(0x0, 0x1)') self.translationTest( |