summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-06-01 16:43:04 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-06-01 19:13:48 +0200
commit766662e78f0ee22a6315c42320c44e7cf76e6ca0 (patch)
tree3f727b4454cb02fc5e9a0102de4a5e261865288c /test
parent7b679bb6ede037c5621848c8f4477b11e7980058 (diff)
add debug hook for junit tests
Diffstat (limited to 'test')
-rw-r--r--test/source/java/org/openoffice/test/OfficeConnection.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/source/java/org/openoffice/test/OfficeConnection.java b/test/source/java/org/openoffice/test/OfficeConnection.java
index 6aa164aed0f8..4cc59a21455d 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.