Skip to content

Commit 649430f

Browse files
bors[bot]asomers
andauthored
Merge #1737
1737: Fix the test_acct test r=rtzoeller a=asomers 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. Co-authored-by: Alan Somers <asomers@gmail.com>
2 parents 5dedbc7 + c8a9cf3 commit 649430f

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)