rust/src/test/run-fail/rt-set-exit-status.rs

8 lines
222 B
Rust
Raw Normal View History

// error-pattern:whatever
fn main() {
log(error, "whatever");
// 101 is the code the runtime uses on task failure and the value
// compiletest expects run-fail tests to return.
sys::set_exit_status(101);
}