summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-03-27 18:25:55 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-03-27 18:25:55 +0200
commita096efe4054ef173ffc39b5daa8aca9aa3d9daaf (patch)
treeebb26380d99ee8f8054742e102e2597c31bf960a
parentc5e22ee5b5d6f1bb6e2ca2d73c0225f9538998c5 (diff)
revert accidentally commited changes
-rw-r--r--test/source/java/org/openoffice/test/OfficeConnection.java24
1 files changed, 1 insertions, 23 deletions
diff --git a/test/source/java/org/openoffice/test/OfficeConnection.java b/test/source/java/org/openoffice/test/OfficeConnection.java
index fcdd2ac4cfa6..d0976689111e 100644
--- a/test/source/java/org/openoffice/test/OfficeConnection.java
+++ b/test/source/java/org/openoffice/test/OfficeConnection.java
@@ -46,20 +46,6 @@ import static org.junit.Assert.*;
Details about the OOo instance are tunneled in via
org.openoffice.test.arg.... system properties.
*/
-final class ShutdownKiller implements java.lang.Runnable {
- private java.lang.Thread m_watchedThread;
- ShutdownKiller(java.lang.Thread watchedThread) {
- m_watchedThread = watchedThread;
- }
- public void run() {
- try {
- Thread.sleep(2000);
- } catch (InterruptedException e) {
- return;
- };
- m_watchedThread.interrupt();
- }
-}
public final class OfficeConnection {
/** Start up an OOo instance.
@@ -96,7 +82,6 @@ public final class OfficeConnection {
"\"soffice\" argument \"" + sofficeArg +
" starts with neither \"path:\" nor \"connect:\"");
}
- Thread.sleep(2000);
XUnoUrlResolver resolver = UnoUrlResolver.create(
Bootstrap.createInitialComponentContext(null));
for (;;) {
@@ -141,14 +126,7 @@ public final class OfficeConnection {
}
int code = 0;
if (process != null) {
- Thread watcher = new Thread(new ShutdownKiller(Thread.currentThread()));
- watcher.run();
- try {
- code = process.waitFor();
- } catch (InterruptedException e) {
- assertTrue(false);
- };
- watcher.interrupt();
+ code = process.waitFor();
}
boolean outTerminated = outForward == null || outForward.terminated();
boolean errTerminated = errForward == null || errForward.terminated();