Skip to content

Commit

Permalink
Update on 03/29/2018
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunghsienlee committed Mar 29, 2018
1 parent 71545f6 commit d362510
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions epi_judge_java/epi/test_framework/GenericTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
9 changes: 6 additions & 3 deletions epi_judge_java/epi/test_framework/GenericTestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions test_data/is_tree_balanced.tsv

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions test_data/tree_exterior.tsv

Large diffs are not rendered by default.

0 comments on commit d362510

Please sign in to comment.