Skip to content

Commit

Permalink
bugs: add test for avast/retdec#184
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMatula committed Jun 5, 2019
1 parent 72461cd commit e79f5f7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Binary file not shown.
28 changes: 28 additions & 0 deletions bugs/issue-184-elf-thunks/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from regression_tests import *

class Test(Test):
settings = TestSettings(
input='40ecc99e2128ddbfe332e85c62bee3bb'
)

def test_c(self):
f = self.out_c.funcs['vgFlush']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgFinish']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgTranslate']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgAppendPath']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgCopyImage']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgQueryResourceRE']
assert f.calls('NCGSYS_DeviceIOControl')

f = self.out_c.funcs['vgGetProcAddress']
assert f.calls('strcmp')

0 comments on commit e79f5f7

Please sign in to comment.