Skip to content

Commit e8b8ca5

Browse files
committed
Reduce tests suite side effects
1 parent 5b9c666 commit e8b8ca5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/test_elf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def dump(ql):
9393
ql.run(begin=hook_address)
9494
del ql
9595

96+
os.remove(snapshot)
97+
9698
def test_elf_linux_x86_snapshot_restore_reg(self):
9799
self._test_elf_linux_x86_snapshot_restore_common(reg=True, ctx=False)
98100

tests/test_elf_multithread.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ def test_elf_linux_execve_x8664(self):
2929

3030

3131
def test_elf_linux_cloexec_x8664(self):
32-
with open('../examples/rootfs/x8664_linux/testfile', 'wb') as f:
33-
f.write(b'0123456789')
34-
3532
ql = Qiling(["../examples/rootfs/x8664_linux/bin/x8664_cloexec_test"],
3633
"../examples/rootfs/x8664_linux",
3734
verbose=QL_VERBOSE.DEBUG,

0 commit comments

Comments
 (0)