diff options
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/com/sun/star/comp/bridge/TestComponentMain.java | 3 | ||||
-rw-r--r-- | testtools/qa/cli/CLITest.java | 6 | ||||
-rw-r--r-- | testtools/qa/cliversioning/VersionTestCase.java | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponentMain.java b/testtools/com/sun/star/comp/bridge/TestComponentMain.java index 4507478826fb..bcb5d8f58e53 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponentMain.java +++ b/testtools/com/sun/star/comp/bridge/TestComponentMain.java @@ -71,7 +71,6 @@ public class TestComponentMain String conDcp = null; String protDcp = null; - String rootOid = null; String dcp = args[0]; boolean singleaccept = args[1].equals("singleaccept"); @@ -88,8 +87,6 @@ public class TestComponentMain protDcp = dcp.substring(0, index).trim(); dcp = dcp.substring(index + 1).trim(); - rootOid = dcp.trim().trim(); - XComponentContext ctx = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext( null ); XMultiComponentFactory smgr = ctx.getServiceManager(); XMultiServiceFactory oldsmgr = diff --git a/testtools/qa/cli/CLITest.java b/testtools/qa/cli/CLITest.java index 9567e1ac408f..40d2ba0d265a 100644 --- a/testtools/qa/cli/CLITest.java +++ b/testtools/qa/cli/CLITest.java @@ -47,13 +47,11 @@ public class CLITest extends ComplexTestCase String[] cmdarray = new String[] {testProgram, arg1}; Process proc = null; - Reader outReader; - Reader errReader; try{ proc = Runtime.getRuntime().exec(cmdarray); - outReader = new Reader(proc.getInputStream()); - errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); } diff --git a/testtools/qa/cliversioning/VersionTestCase.java b/testtools/qa/cliversioning/VersionTestCase.java index 93b464fcc069..7ada72145a60 100644 --- a/testtools/qa/cliversioning/VersionTestCase.java +++ b/testtools/qa/cliversioning/VersionTestCase.java @@ -55,8 +55,8 @@ public class VersionTestCase extends ComplexTestCase Process proc = null; proc = Runtime.getRuntime().exec(testProgram, arEnv); - Reader outReader = new Reader(proc.getInputStream()); - Reader errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); proc.waitFor(); retVal = proc.exitValue(); } catch(Exception e) |