tycho/tycho-fix-surefire-api-chan...

12 lines
829 B
Diff

--- a/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java.bak 2013-02-23 21:21:16.000000000 +0100
+++ b/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java 2013-02-23 21:33:27.638911936 +0100
@@ -89,7 +89,7 @@
RunResult result = ProviderFactory.invokeProvider(null, testClassLoader, surefireClassLoader,
createReporterFactory(startupReportConfig), providerConfiguration, false, startupConfiguration, true);
- return result.getFailsafeCode();
+ return result.getFailsafeCode() == null ? 0 : result.getFailsafeCode();
}
private static ReporterFactory createReporterFactory(StartupReportConfiguration startupReportConfig) {