Skip to content

Commit

Permalink
MONDRIAN: test.Main exit(1) on error, so that build procedure would r…
Browse files Browse the repository at this point in the history
…ecognize "test failed"

[git-p4: depot-paths = "//open/mondrian/": change = 1499]
  • Loading branch information
hhaas committed Mar 5, 2004
1 parent 6c06707 commit 84885c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/mondrian/test/Main.java
Expand Up @@ -52,6 +52,7 @@ private void runSafe(String[] args) {
pw.println(errors[i]);
}
pw.flush();
System.exit(1);
}
}

Expand All @@ -63,7 +64,9 @@ void run(String[] args) throws Exception {
if (false) {
new MondrianHarness().run(test, new MondrianListener());
} else {
TestRunner.run(test);
TestResult tres = TestRunner.run(test);
if (!tres.wasSuccessful())
System.exit(1);
}
}

Expand Down

0 comments on commit 84885c1

Please sign in to comment.