Skip to content

Commit 3f71a11

Browse files
committed
bugs: add tests for avast/retdec#431
1 parent 02abccb commit 3f71a11

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
21 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
""" Input file raw.bin created as follows:
2+
$ offset=18
3+
$ dd if=/dev/zero bs=$offset count=1 >raw.bin
4+
$ printf "\x31\xc0\xc3" >>raw.bin # xor eax, eax; ret
5+
"""
6+
from regression_tests import *
7+
8+
class Test(Test):
9+
settings = TestSettings(
10+
input='raw.bin',
11+
mode='raw',
12+
arch='x86',
13+
args='--endian little --raw-section-vma 0x0 --raw-entry-point 0x12'
14+
)
15+
16+
def test_check_output(self):
17+
assert self.out_c.has_just_funcs('entry_point')
18+
assert self.out_c.has_comment_matching('// Address range: 0x12 - 0x15')

0 commit comments

Comments
 (0)