blob: 98a4af0c467a33acf42b804238fe8e4f9507c95c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// run-pass
// ignore-emscripten no processes
// ignore-sgx 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());
}
}
|