From c8a9cf33514430b5de9e73bcaee21cb6e2dbd1c6 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 7 Jun 2022 20:10:46 -0600 Subject: 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. --- test/test_unistd.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3