edited testcases

This commit is contained in:
Sascha Schirra 2019-08-13 19:10:46 +02:00
parent e0f704faaa
commit e6372d6d47
2 changed files with 0 additions and 4 deletions

View File

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

View File

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