edited testcases
This commit is contained in:
parent
e0f704faaa
commit
e6372d6d47
|
@ -53,9 +53,6 @@ class GeneralTests(unittest.TestCase):
|
|||
found_gadgets = self.rs.searchdict('mov [rax]')[FILE]
|
||||
self.assertEqual(len(found_gadgets), 2)
|
||||
|
||||
found_gadgets = self.rs.searchdict('mov [r?x]')[FILE]
|
||||
self.assertEqual(len(found_gadgets), 7)
|
||||
|
||||
found_gadgets = self.rs.searchdict('mov [r?x%]')[FILE]
|
||||
self.assertGreater(len(found_gadgets), 12)
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@ class ELF_Mips(unittest.TestCase):
|
|||
gadgets = ropper.searchGadgets(self.file)
|
||||
|
||||
gadget = gadgets[0]
|
||||
self.assertGreater(len(gadgets), 2100)
|
||||
self.assertEqual(gadget.lines[0][0] + self.file.imageBase, gadget.address)
|
||||
self.assertEqual(gadget.imageBase, 0x400000)
|
||||
self.file.imageBase = 0x0
|
||||
|
|
Loading…
Reference in New Issue