Skip to content

Commit 5f4a717

Browse files
committed
Add missing cleanup code, see if CI happy this time.
1 parent 8b5cdd1 commit 5f4a717

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_elf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def hook_main(ql: Qiling):
152152
ba = ql.loader.images[0].base
153153
ql.hook_address(hook_main, ba + 0x10e0)
154154
ql.run()
155+
del ql
155156

156157
# test whether we interpected opening urandom
157158
self.assertListEqual(opened, [r'/dev/urandom'])
@@ -741,6 +742,7 @@ def test_syscall_ftruncate(ql, ftrunc_fd, ftrunc_length, *args):
741742
ql.set_syscall(4092, test_syscall_truncate)
742743
ql.set_syscall(4093, test_syscall_ftruncate)
743744
ql.run()
745+
del ql
744746

745747

746748
def test_elf_linux_arm_custom_syscall(self):
@@ -829,6 +831,7 @@ def run_one_round(payload):
829831
stdin.write(payload)
830832
ql.run()
831833
del stdin
834+
del ql
832835
return ins_count[0]
833836

834837

@@ -1090,6 +1093,7 @@ def test_armoabi_le_linux_syscall_elf_static(self):
10901093
rootfs = "../examples/rootfs/arm_linux"
10911094
ql = Qiling(path, rootfs, verbose = QL_VERBOSE.DEBUG)
10921095
ql.run()
1096+
del ql
10931097

10941098
def test_elf_linux_x86_getdents64(self):
10951099
class MyPipe():

0 commit comments

Comments
 (0)