(ql: Qiling, fd: int, path: int, flags: int, mode: int)
| 293 | return retval |
| 294 | |
| 295 | def test_syscall_openat(ql: Qiling, fd: int, path: int, flags: int, mode: int): |
| 296 | retval = syscall.ql_syscall_openat(ql, fd, path, flags, mode) |
| 297 | |
| 298 | vpath = ql.os.utils.read_cstring(path) |
| 299 | |
| 300 | if vpath == "test_syscall_open.txt": |
| 301 | hpath = ql.os.path.virtual_to_host_path(vpath) |
| 302 | |
| 303 | self.assertTrue(os.path.isfile(hpath)) |
| 304 | checklist.append('openat') |
| 305 | |
| 306 | if ql.host.os is not QL_OS.WINDOWS: |
| 307 | os.remove(hpath) |
| 308 | |
| 309 | return retval |
| 310 | |
| 311 | def test_syscall_unlink(ql: Qiling, path: int): |
| 312 | retval = syscall.ql_syscall_unlink(ql, path) |
nothing calls this directly
no test coverage detected