//= { //= "output": { //= "2": [ //= "thread 'main' panicked at 'qwertyuiop', tests/.*\\.rs:[0-9]+:[0-9]+\n", //= true //= ], //= "1": [ //= "", //= true //= ] //= }, //= "children": [], //= "exit": { //= "Error": { //= "Unix": { //= "Signal": "SIGABRT" //= } //= } //= } //= } use constellation::*; use std::{panic, process, thread, time}; fn main() { init(Resources { mem: 20 * Mem::MIB, ..Resources::default() }); panic::set_hook(Box::new(|info| { eprintln!( "thread '{}' {}", thread::current().name().unwrap_or(""), info ); let err = unsafe { nix::libc::setrlimit( nix::libc::RLIMIT_CORE, &nix::libc::rlimit { rlim_cur: 0, rlim_max: 0, }, ) }; assert_eq!(err, 0); process::abort() })); thread::sleep(time::Duration::new(0, 100_000_000)); panic!("qwertyuiop"); }