Author: jim.ma
Date: 2010-05-14 07:43:43 -0400 (Fri, 14 May 2010)
New Revision: 12236
Modified:
common/branches/jbossws-common-1.1.0/src/main/java/org/jboss/wsf/test/JBossWSTest.java
Log:
[JBPAPP-3813]:Give more time to copy the process inputstream and error stream in
JBossWSTest.executeCommand()
Modified:
common/branches/jbossws-common-1.1.0/src/main/java/org/jboss/wsf/test/JBossWSTest.java
===================================================================
---
common/branches/jbossws-common-1.1.0/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2010-05-14
11:21:44 UTC (rev 12235)
+++
common/branches/jbossws-common-1.1.0/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2010-05-14
11:43:43 UTC (rev 12236)
@@ -172,10 +172,14 @@
// unfortunately the following threads are needed because of Windows behavior
System.out.println("Process input stream:");
System.err.println("Process error stream:");
- new Thread( inputStreamJob ).start();
- new Thread( errorStreamJob ).start();
+ Thread inputJob = new Thread(inputStreamJob);
+ Thread outputJob = new Thread(errorStreamJob);
try
- {
+ {
+ inputJob.start();
+ inputJob.join(5000);
+ outputJob.start();
+ outputJob.join(5000);
int statusCode = p.waitFor();
String fallbackMessage = "Process did exit with status " + statusCode;
assertTrue(message != null ? message : fallbackMessage, statusCode == 0);
Show replies by date