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

Method test_syscall_unlink

tests/test_elf.py:311–322  ·  view source on GitHub ↗
(ql: Qiling, path: int)

Source from the content-addressed store, hash-verified

309 return retval
310
311 def test_syscall_unlink(ql: Qiling, path: int):
312 retval = syscall.ql_syscall_unlink(ql, path)
313
314 vpath = ql.os.utils.read_cstring(path)
315
316 if vpath == "test_syscall_unlink.txt":
317 hpath = ql.os.path.virtual_to_host_path(vpath)
318
319 self.assertFalse(os.path.isfile(hpath))
320 checklist.append('unlink')
321
322 return retval
323
324 def test_syscall_unlinkat(ql: Qiling, fd: int, path: int, flags: int):
325 retval = syscall.ql_syscall_unlinkat(ql, fd, path, flags)

Callers

nothing calls this directly

Calls 3

read_cstringMethod · 0.80
virtual_to_host_pathMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected