| 219 | del ql |
| 220 | |
| 221 | def test_elf_linux_x86(self): |
| 222 | filename = 'test.qlog' |
| 223 | |
| 224 | ql = Qiling(["../examples/rootfs/x86_linux/bin/x86_hello"], "../examples/rootfs/x86_linux", verbose=QL_VERBOSE.DEBUG, log_devices=[filename]) |
| 225 | ql.run() |
| 226 | ql._log_file_fd.handlers[0].close() # prevent FD leak that causes downstream issues |
| 227 | os.remove(filename) |
| 228 | del ql |
| 229 | |
| 230 | def test_elf_linux_x86_static(self): |
| 231 | ql = Qiling(["../examples/rootfs/x86_linux/bin/x86_hello_static"], "../examples/rootfs/x86_linux", verbose=QL_VERBOSE.DEBUG) |