Use a unique exit status when the runtime fails normally

Check for it in run-fail tests
This commit is contained in:
Brian Anderson
2011-09-08 13:42:04 -07:00
parent 6f6f36172b
commit 0ea55ffdc8
4 changed files with 15 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ rust_scheduler::fail() {
log(NULL, log_err, "domain %s @0x%" PRIxPTR " root task failed",
name, this);
I(this, kernel->rval == 0);
kernel->rval = 1;
kernel->rval = PROC_FAIL_CODE;
kernel->fail();
}