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

Method test_syscall_unlinkat

tests/test_elf.py:324–335  ·  view source on GitHub ↗
(ql: Qiling, fd: int, path: int, flags: int)

Source from the content-addressed store, hash-verified

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)
326
327 vpath = ql.os.utils.read_cstring(path)
328
329 if vpath == "test_syscall_unlink.txt":
330 hpath = ql.os.path.virtual_to_host_path(vpath)
331
332 self.assertFalse(os.path.isfile(hpath))
333 checklist.append('unlinkat')
334
335 return retval
336
337 def test_syscall_truncate(ql: Qiling, path: int, length: int):
338 retval = syscall.ql_syscall_truncate(ql, path, length)

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