diff options
author | sb <sb@openoffice.org> | 2010-02-12 17:36:13 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-02-12 17:36:13 +0100 |
commit | 3ef6cfa566e6d419d58f2659a649ba9c1308cdc5 (patch) | |
tree | d7892a7ab74360ac41111320a3055d4a40465b11 /qadevOOo/runner/org/openoffice | |
parent | 75d11d8f2f10604b35c6b0fb4bb24660f32f8329 (diff) |
sb118: moved test OOo installation stuff to new solenv/inc/installationtest.mk (makefile parts) and new test module (C++ and, new, Java unit test parts); adapted sw/qa/unoapi to new (Java) test framework
Diffstat (limited to 'qadevOOo/runner/org/openoffice')
-rw-r--r-- | qadevOOo/runner/org/openoffice/Runner.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java index 473f01a63b97..b61a7634e480 100644 --- a/qadevOOo/runner/org/openoffice/Runner.java +++ b/qadevOOo/runner/org/openoffice/Runner.java @@ -185,8 +185,7 @@ public class Runner } } - public static void main(String[] args) - { + public static boolean run(String... args) { System.out.println("OOoRunner Main() version from 20090825 (yyyymmdd)"); setStartTime(getTime()); @@ -249,12 +248,16 @@ public class Runner if (!worked) { System.out.println("Job " + param.get("TestJob") + " failed"); - System.exit(-1); } else { System.out.println("Job " + param.get("TestJob") + " done"); - System.exit(0); } + return worked; + } + + public static void main(String[] args) + { + System.exit(run(args) ? 0 : -1); } } |