summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-03-28 16:15:45 +0200
committerJose <jose@zeroc.com>2016-03-28 16:15:45 +0200
commitf89980ac5128ab113e15b5aa1df7506b0bcf370c (patch)
tree1bf52b86ba88896d5a1679666a9cdb0bd7d97a65
parentUnity fixes (diff)
downloadice-f89980ac5128ab113e15b5aa1df7506b0bcf370c.tar.bz2
ice-f89980ac5128ab113e15b5aa1df7506b0bcf370c.tar.xz
ice-f89980ac5128ab113e15b5aa1df7506b0bcf370c.zip
Enabling server network tracing causes browser JavaScript tests to hang
-rw-r--r--java/test/controller/src/main/java/Test/Common/ControllerServer.java24
-rwxr-xr-xscripts/TestUtil.py1
2 files changed, 18 insertions, 7 deletions
diff --git a/java/test/controller/src/main/java/Test/Common/ControllerServer.java b/java/test/controller/src/main/java/Test/Common/ControllerServer.java
index b59376e10b9..5e4e9fc938b 100644
--- a/java/test/controller/src/main/java/Test/Common/ControllerServer.java
+++ b/java/test/controller/src/main/java/Test/Common/ControllerServer.java
@@ -44,19 +44,19 @@ public class ControllerServer extends Ice.Application
{
final BufferedReader reader = new BufferedReader(new InputStreamReader(_is));
- String line = null;
- while((line = reader.readLine()) != null)
+ String line = reader.readLine();
+ while(line != null)
{
if(_started == 0)
{
_processOutput.append(line + "\n");
}
- if(line.matches(Pattern.quote("starting server...") + ".*ok") ||
- line.matches(Pattern.quote("starting serveramd...") + ".*ok") ||
- line.matches(Pattern.quote("starting servertie...") + ".*ok") ||
- line.matches(Pattern.quote("starting serveramdtie...") + ".*ok") ||
- line.matches("starting test.*" + Pattern.quote("Server...") + ".*ok"))
+ if(line.matches(Pattern.quote("starting server...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting serveramd...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting servertie...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting serveramdtie...") + ".*ok.*") ||
+ line.matches("starting test.*" + Pattern.quote("Server...") + ".*ok.*"))
{
synchronized(ServerI.this)
{
@@ -64,7 +64,17 @@ public class ControllerServer extends Ice.Application
ServerI.this.notifyAll();
}
}
+ else if(line.matches(Pattern.quote("starting server...") + ".*") ||
+ line.matches(Pattern.quote("starting serveramd...") + ".*") ||
+ line.matches(Pattern.quote("starting servertie...") + ".*") ||
+ line.matches(Pattern.quote("starting serveramdtie...") + ".*") ||
+ line.matches("starting test.*" + Pattern.quote("Server...") + ".*"))
+ {
+ line += reader.readLine();
+ continue;
+ }
System.out.println(line);
+ line = reader.readLine();
}
}
catch(java.io.IOException ex)
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 7f7ad138c83..1084a024b32 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1028,6 +1028,7 @@ def getCommandLineProperties(exe, config):
# Turn on network tracing.
#
#components.append("--Ice.Trace.Network=3")
+ #components.append("--Ice.Trace.Protocol=1")
#
# Now we add additional components dependent on the desired