summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-06-07 20:10:46 -0600
committerAlan Somers <asomers@gmail.com>2022-06-07 20:10:46 -0600
commitc8a9cf33514430b5de9e73bcaee21cb6e2dbd1c6 (patch)
tree3c1bad9d20c8bf43a36aa871da0e24d3af9127ef /test
parent5dedbc7850448ae3922ab0a833f3eb971bf7e25f (diff)
downloadnix-c8a9cf33514430b5de9e73bcaee21cb6e2dbd1c6.zip
Fix the test_acct test
It has never actually executed its command, so the only reason that it ever worked is that on most systems there are usually processes starting and exiting all the time.
Diffstat (limited to 'test')
-rw-r--r--test/test_unistd.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 120a9dd3..b3b69bbb 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -583,7 +583,10 @@ fn test_acct() {
acct::enable(path).unwrap();
loop {
- Command::new("echo").arg("Hello world");
+ Command::new("echo")
+ .arg("Hello world")
+ .output()
+ .unwrap();
let len = fs::metadata(path).unwrap().len();
if len > 0 { break; }
thread::sleep(time::Duration::from_millis(10));