Closed oxr463 closed 3 years ago
Unit tests for cwd
field are included in this PR:
More specifically, in the unit test function test_chdir_fchdir_and_getcwd()
, a series of system calls are placed in tracee function (i.e., chdir() and fchdir()) to change the current working directory, and a hook function is placed in proot-rs to check if the cwd
field is always a canonical path from start to finish.
Do we have a unit test for this?
_Originally posted by @oxr463 in https://github.com/proot-me/proot-rs/pull/25#discussion_r645747165_