Example #1
0
 def test_get_last_paddr(self):
     for filename in elf_address:
         ef = PreparedElfFile(filename=filename)
         if elf_address[filename][1] is None:
             self.assertRaises(InvalidArgument, ef.get_last_addr, "physical")
         else:
             self.assertEqual(ef.get_last_addr("physical"), elf_address[filename][1],
                              "%s 0x%x != 0x%x" % (filename, ef.get_last_addr("physical"),
                                                   elf_address[filename][1]))
Example #2
0
 def test_get_last_addr(self):
     for fn in elf_address:
         ef = PreparedElfFile(filename=fn)
         self.assertEqual(
             ef.get_last_addr(), elf_address[fn][0], "%s 0x%x != 0x%x" % (fn, ef.get_last_addr(), elf_address[fn][0])
         )
Example #3
0
 def test_get_last_addr(self):
     for filename in elf_address:
         ef = PreparedElfFile(filename=filename)
         self.assertEqual(ef.get_last_addr(), elf_address[filename][0],
                          "%s 0x%x != 0x%x" % (filename, ef.get_last_addr(),
                                               elf_address[filename][0]))