mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Failures cause app to exit with exitStatus != 1
This commit is contained in:
@@ -254,7 +254,10 @@ bool NativeHandler::Execute(const CefString& name,
|
||||
return true;
|
||||
}
|
||||
else if (name == "exit") {
|
||||
[NSApp terminate:NSApp];
|
||||
int exitStatus = 0;
|
||||
if (arguments.size() > 0) exitStatus = arguments[0]->GetIntValue();
|
||||
|
||||
exit(exitStatus);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
2
vendor/jasmine-html.js
vendored
2
vendor/jasmine-html.js
vendored
@@ -104,7 +104,7 @@ jasmine.AtomReporter.prototype.reportRunnerResults = function(runner) {
|
||||
|
||||
this.finishedAtSpan.appendChild(document.createTextNode("Finished at " + new Date().toString()));
|
||||
|
||||
if (atom.exitAfterSpecs) $native.exit()
|
||||
if (atom.exitAfterSpecs) $native.exit(results.failedCount > 0 ? 1 : 0)
|
||||
};
|
||||
|
||||
jasmine.AtomReporter.prototype.reportSuiteResults = function(suite) {
|
||||
|
||||
Reference in New Issue
Block a user