code wiki / _hdl_build / test_chdir.nx
test_chdir.nx
buildroot/runtime/_hdl_build/test_chdir.nx
about
test_chdir.nx -- isolate whether the new sys_chdir(80) wrapper actually changes cwd. Creates /tmp/cdt/m,
chdirs to /tmp/cdt, then opens "m" RELATIVE. If it reads -> cwd changed -> sys_chdir works. expect_exit:0
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 4 | func p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 5 | func pn(v: i64) -> i64 |
| 10 | func main() -> i64 |