1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Removing debug code

This commit is contained in:
Chad Brewbaker 2021-05-18 15:17:07 -05:00
parent c60d3866c3
commit a69cb11de9

View file

@ -355,10 +355,8 @@ fn test_dev_random() {
let mut proc = new_ucmd!().args(&[rand_gen()]).run_no_wait(); let mut proc = new_ucmd!().args(&[rand_gen()]).run_no_wait();
let mut proc_stdout = proc.stdout.take().unwrap(); let mut proc_stdout = proc.stdout.take().unwrap();
println!("I got to 1");
proc_stdout.read_exact(&mut buf).unwrap(); proc_stdout.read_exact(&mut buf).unwrap();
println!("I got to 3");
let num_zeroes = buf.iter().fold(0, |mut acc, &n| { let num_zeroes = buf.iter().fold(0, |mut acc, &n| {
if n == 0 { if n == 0 {
acc += 1; acc += 1;