summaryrefslogtreecommitdiff
path: root/test/test_stat.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-05-26 18:20:04 -0600
committerAlan Somers <asomers@gmail.com>2019-06-06 08:54:18 -0600
commit129485cfa3455b7eda3217e36ee89d4ca75d38b2 (patch)
treedc0595bc5fc596539f21a0f3ab6528d2da3d003f /test/test_stat.rs
parentd39bdbdd9cbe6bb5c782c8ea14932ec62c272764 (diff)
downloadnix-129485cfa3455b7eda3217e36ee89d4ca75d38b2.zip
Fix multiple problems with the test_acct test
* On Linux, it requires the CAP_SYS_PACCT capability. * Reenable the test on FreeBSD, because our FreeBSD CI environment is no longer jailed (since we switched from BuildBot to CirrusCI), but check at runtime whether the process is jailed. * test_acct needs the FORK_MTX because it uses Command::new . * Fix a race condition. acct(2) isn't synchronous. It starts a kernel thread but does not wait for it to become ready. Fix it by running the test command within the polling loop.
Diffstat (limited to 'test/test_stat.rs')
0 files changed, 0 insertions, 0 deletions