(ql: Qiling, fd: int, path: int, flags: int)
| 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) |
nothing calls this directly
no test coverage detected