Skip to content

Commit c8a9cf3

Browse files
committed
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.
1 parent 5dedbc7 commit c8a9cf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_unistd.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,10 @@ fn test_acct() {
583583
acct::enable(path).unwrap();
584584

585585
loop {
586-
Command::new("echo").arg("Hello world");
586+
Command::new("echo")
587+
.arg("Hello world")
588+
.output()
589+
.unwrap();
587590
let len = fs::metadata(path).unwrap().len();
588591
if len > 0 { break; }
589592
thread::sleep(time::Duration::from_millis(10));

0 commit comments

Comments
 (0)