Skip to content

Commit

Permalink
Tiny rework of exiting in tests. This unmasks failing tests in UmlDoc…
Browse files Browse the repository at this point in the history
…Test.
  • Loading branch information
foxeng committed Apr 9, 2019
1 parent 552db97 commit 0a71dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/umlgraph/test/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public static void main(String[] args) throws IOException {
for (String className : differences) {
pw.println(className);
}
System.exit(1);
} else {
pw.println("GOOD, all files are structurally equal");
}
pw.println();
pw.println();
pw.flush();
System.exit(differences.size() > 0 ? 1 : 0);
}

private static void performViewTests(List<String> differences, File outFolder)
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/umlgraph/test/UmlDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ private static void compareDocletOutputs(List<String> differences, File refFolde
private static void runDoclet(String[] options) {
pw.print("Run javadoc -doclet " + doclet);
for (String o : options)
pw.print(" " + o);
pw.print(o + " ");
pw.println();
com.sun.tools.javadoc.Main.execute("UMLDoc test", pw, pw, pw,
doclet, options);
System.exit(0);
}

}

0 comments on commit 0a71dbf

Please sign in to comment.