mirror of https://github.com/dspinellis/UMLGraph
Tiny rework of exiting in tests. This unmasks failing tests in UmlDocTest.
This commit is contained in:
parent
552db976fd
commit
0a71dbfc82
|
|
@ -58,13 +58,13 @@ public class BasicTest {
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -145,11 +145,10 @@ public class UmlDocTest {
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue