2012-01-13 00:17:21 -06:00
|
|
|
// error-pattern:whatever
|
|
|
|
|
|
|
|
fn main() {
|
2012-07-14 00:57:48 -05:00
|
|
|
log(error, ~"whatever");
|
2012-01-13 00:17:21 -06:00
|
|
|
// Setting the exit status only works when the scheduler terminates
|
|
|
|
// normally. In this case we're going to fail, so instead of of
|
|
|
|
// returning 50 the process will return the typical rt failure code.
|
2012-04-19 03:26:17 -05:00
|
|
|
os::set_exit_status(50);
|
2012-01-13 00:17:21 -06:00
|
|
|
fail;
|
|
|
|
}
|