From 74fa174b67263eac68aeebf099b792fafff40674 Mon Sep 17 00:00:00 2001 From: Watson Date: Fri, 7 Nov 2014 09:52:12 +0900 Subject: [PATCH] [sim] return non 0 as exit code if "rake spec" crashed --- NEWS | 2 ++ bin/sim.m | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 2d1d9bb5..0dcf1b90 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/bin/sim.m b/bin/sim.m index 5866bec9..d6f377a1 100644 --- a/bin/sim.m +++ b/bin/sim.m @@ -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);