Skip to content

Commit

Permalink
fix typo statement
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Oct 8, 2015
1 parent a692693 commit 41c90a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/haystack/reverse/test_utils.py
Expand Up @@ -9,6 +9,7 @@

from haystack.reverse import utils
from haystack.reverse import context
from haystack import dump_loader


class TestBasicFunctions(unittest.TestCase):
Expand All @@ -23,7 +24,11 @@ def test_closestFloorValue(self):
with self.assertRaises(ValueError):
utils.closestFloorValue(-1, lst)

ctx = context.get_context('test/src/test-ctypes3.32.dump')
memory_handler = dump_loader.load('test/src/test-ctypes3.32.dump')
finder = memory_handler.get_heap_finder()
heap = finder.get_heap_mappings()[0]
heap_addr = heap.get_marked_heap_address()
ctx = context.get_context_for_address(memory_handler, heap_addr)
lst = ctx._structures_addresses
# print ['0x%0.8x'%i for i in lst]

Expand Down

0 comments on commit 41c90a4

Please sign in to comment.