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

@@ -140,7 +140,7 @@ rust_kernel::fail() {
// Runtime to terminate it in an unusual way" when trying to shutdown
// cleanly.
#if defined(__WIN32__)
exit(1);
exit(rval);
#endif
for(size_t i = 0; i < num_threads; ++i) {
rust_scheduler *thread = threads[i];