rust/src/test/run-pass/issues/issue-14940.rs
2018-12-25 21:08:33 -07:00

20 lines
476 B
Rust

// run-pass
// ignore-cloudabi no processes
// ignore-emscripten no processes
use std::env;
use std::process::Command;
use std::io::{self, Write};
fn main() {
let mut args = env::args();
if args.len() > 1 {
let mut out = io::stdout();
out.write(&['a' as u8; 128 * 1024]).unwrap();
} else {
let out = Command::new(&args.next().unwrap()).arg("child").output();
let out = out.unwrap();
assert!(out.status.success());
}
}