Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
related to angr/angr#1348
  • Loading branch information
pbst committed Dec 19, 2018
1 parent 96d3acd commit 1b4382d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_driller.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def test_simproc_drilling():
nose.tools.assert_true(any(filter(lambda x: x[1].startswith(password), new_inputs)))


def test_popfd_thing():
# related to https://github.com/angr/angr/pull/1348
binary = os.path.join(bin_location, "tests/x86/linux/popfd_thing")
d = driller.Driller(os.path.join(bin_location, binary), b"A", b"\xff"*65535)
d.drill()
# this test just checks that no exceptions were thrown


def run_all():
def print_test_name(name):
print('#' * (len(name) + 8))
Expand Down

0 comments on commit 1b4382d

Please sign in to comment.