[sim] return non 0 as exit code if "rake spec" crashed

This commit is contained in:
Watson
2014-11-07 09:52:12 +09:00
parent 4b876b96f7
commit 74fa174b67
2 changed files with 6 additions and 0 deletions

View File

@@ -1198,6 +1198,10 @@ lldb_run_command()
if (res != nil) {
status = [res intValue];
}
else {
// The session might be terminated with crash.
status = -1;
}
[[NSFileManager defaultManager] removeItemAtPath:path error:nil];
}
exit(status);