Permalink
Browse files

Add missing config.json (#32)

* Add missing config.json
  • Loading branch information...
tsunghsienlee committed Mar 29, 2018
1 parent c122e48 commit ff57394ccc32f5e0b92b76743e6b9fb820f80228
@@ -0,0 +1,4 @@
{
"timeoutSeconds": 0,
"numFailedTestsBeforeStop": 1
}
@@ -89,9 +89,9 @@ public static TestResult runTests(GenericTestHandler handler,
testTimer = e.getTimer();
} catch (StackOverflowError e) {
result = TestResult.STACK_OVERFLOW;
} catch (RuntimeException e) {
} catch (RuntimeException | Error e) {
throw e;
} catch (Throwable e) {
} catch (Exception e) {
result = TestResult.UNKNOWN_EXCEPTION;
testFailure =
new TestFailure(e.getClass().getName())
@@ -138,7 +138,7 @@ public void parseSignature(List<String> signature) {
* type
*/
public TestTimer runTest(long timeoutSeconds, List<String> testArgs)
throws Throwable {
throws Exception, Error {
try {
if (testArgs.size() !=
paramParsers.length + (retValueParser != null ? 1 : 0)) {
@@ -172,9 +172,12 @@ public TestTimer runTest(long timeoutSeconds, List<String> testArgs)
} catch (InvocationTargetException e) {
Throwable t = e.getCause();
if (t instanceof Exception) {
throw t;
throw (Exception)t;
} else if (t instanceof Error) {
throw (Error) t;
} else {
throw new RuntimeException(t.getMessage());
// Improbable except for intended attempts to break the code, but anyway
throw new RuntimeException(t);
}
}
}

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit ff57394

Please sign in to comment.