[Libreoffice-commits] .: test/source

Bjoern Michaelsen bmichaelsen at kemper.freedesktop.org
Wed Jun 1 10:19:47 PDT 2011


 test/source/java/org/openoffice/test/OfficeConnection.java |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 79cfff0b519f6970aea23de3ee6fd7080f65b832
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Wed Jun 1 16:43:04 2011 +0200

    add debug hook for junit tests

diff --git a/test/source/java/org/openoffice/test/OfficeConnection.java b/test/source/java/org/openoffice/test/OfficeConnection.java
index 6aa164a..4cc59a2 100644
--- a/test/source/java/org/openoffice/test/OfficeConnection.java
+++ b/test/source/java/org/openoffice/test/OfficeConnection.java
@@ -62,7 +62,7 @@ public final class OfficeConnection {
             description = "pipe,name=oootest" + UUID.randomUUID();
             ProcessBuilder pb = new ProcessBuilder(
                 sofficeArg.substring("path:".length()), "--quickstart=no",
-                "--nofirststartwizard", "--norestore",
+                "--nofirststartwizard", "--norestore", "--nologo",
                 "--accept=" + description + ";urp",
                 "-env:UserInstallation=" + Argument.get("user"),
                 "-env:UNO_JAVA_JFW_ENV_JREHOME=true",
@@ -104,6 +104,12 @@ public final class OfficeConnection {
                 assertNull(waitForProcess(process, 1000)); // 1 sec
             }
         }
+        try {
+            ProcessBuilder debugbp = new ProcessBuilder(
+                Argument.get("debugcommand").split(" "));
+            debugbp.start();
+            Thread.sleep(1000);
+        } catch(Exception e) {}
     }
 
     /** Shut down the OOo instance.


More information about the Libreoffice-commits mailing list