[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

2
NEWS
View File

@@ -2,6 +2,8 @@
* [iOS] Fixed a regression where Extension and Frameworks could not build for
iOS device.
* [iOS] Fixed a bug where `rake spec' would return 0 as exit code even if it
will fail with crash.
* Fixed the `motion support' command invocation to print both the stable and
pre-release versions of RubyMotion.

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);