MCPcopy Create free account
hub / github.com/qilingframework/qiling / test_elf_linux_x86

Method test_elf_linux_x86

tests/test_elf.py:221–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
QilingClass · 0.90
closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected