Okay
Kabir Khan wrote:
There are some problems with those tests, it seems mainly to be on
slower machines so I should increase the timeouts. I am changing the communication layer
between the AS 7 processes which will probably mean revisiting the tests. So ignore those
failures for now but send me the surefire reports
ignore the failures but send me the surefire reports
On 31 Aug 2010, at 14:05, Dimitris Andreadis wrote:
> While building AS7 on WinXP, is this expected? (or nobody tests on Windoze)
>
> Failed tests:
> testRespawnKilledProcess(org.jboss.as.process.test.RespawnCrashedProcessesTest
> Case)
> testDelayInRespawningProcessesBeforeGivingUp(org.jboss.as.process.test.Respawn
> CrashedProcessesTestCase)
>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-development
===== Test RespawnCrashedProcessesTestCase.testRespawnExitedProcess ===========
*Test - Test Server Socket Thread attempting to listen on 12934
*Test - Server listening on 12934
*Test - Starting Main java.util.concurrent.CountDownLatch@1b90b39[Count = 1]
31-Aug-2010 13:52:26 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM listening on 12967
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess start
INFO: Starting Main
*Test - Listener started
*Test - null listener got data START:Main
*Test - Start received for Main {Main=java.util.concurrent.CountDownLatch@1b90b39[Count =
1]}
*Test - Started Main
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: Main connected to port 1307
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Started
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for Main
*Test - Main listener got data MSG:Main:Main-Exit1
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Exiting
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
ERROR: Output stream handler for process Main caught an exception; shutting down
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at org.jboss.as.process.StreamUtils.readChar(StreamUtils.java:57)
at org.jboss.as.process.StreamUtils.readWord(StreamUtils.java:44)
at org.jboss.as.process.ManagedProcess$OutputStreamHandler.run(ManagedProcess.java:182)
at java.lang.Thread.run(Thread.java:619)
*Test - Test Listener Socket Thread socket closed
*Test - Listener started
*Test - null listener got data START:Main
*Test - Start received for Main {}
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: Main connected to port 1309
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for Main
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Started
*Test - Stopping Main {Main=java.util.concurrent.CountDownLatch@1f9dc36[Count = 1]}
*Test - Waiting for stop Main
*Test - Main listener got data STOP:Main
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
INFO: Received end of stream, shutting down Main
*Test - Stop received for Main {Main=java.util.concurrent.CountDownLatch@1f9dc36[Count =
1]}
*Test - Main listener got data null
*Test - Stopped Main
*Test - Test Server Socket Thread closing server
*Test - server socket closed true true
*Test - afterTest() - end
*Test - Test Server Socket Thread server socket closed
*Test - server socket closed true true
31-Aug-2010 13:52:26 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM closed server socket
===== Test RespawnCrashedProcessesTestCase.testRespawnKilledProcess ===========
*Test - Test Server Socket Thread attempting to listen on 12934
*Test - Server listening on 12934
31-Aug-2010 13:52:26 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM listening on 12967
*Test - Starting KillMe java.util.concurrent.CountDownLatch@186db54[Count = 1]
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess start
INFO: Starting KillMe
*Test - Listener started
*Test - null listener got data START:KillMe
*Test - Start received for KillMe
{KillMe=java.util.concurrent.CountDownLatch@186db54[Count = 1]}
*Test - Started KillMe
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: KillMe connected to port 1311
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): KillMe-Started
31-Aug-2010 13:52:26 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for KillMe
*Test - Test Server Socket Thread closing server
*Test - server socket closed true true
*Test - Test Server Socket Thread server socket closed
*Test - server socket closed true true
*Test - Test Listener Socket Thread socket closed
*Test - afterTest() - end
31-Aug-2010 13:52:27 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM closed server socket
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
INFO: Received end of stream, shutting down KillMe
===== Test RespawnCrashedProcessesTestCase.testDontRespawnProcessShutdownViaPM
===========
*Test - Test Server Socket Thread attempting to listen on 12934
*Test - Server listening on 12934
31-Aug-2010 13:52:27 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM listening on 12967
*Test - Starting Main java.util.concurrent.CountDownLatch@1aaa14a[Count = 1]
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess start
INFO: Starting Main
*Test - Listener started
*Test - null listener got data START:Main
*Test - Start received for Main {Main=java.util.concurrent.CountDownLatch@1aaa14a[Count =
1]}
*Test - Started Main
*Test - Stopping Main {Main=java.util.concurrent.CountDownLatch@1e51060[Count = 1]}
*Test - Waiting for stop Main
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: Main connected to port 1313
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for Main
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Started
*Test - Main listener got data STOP:Main
*Test - Stop received for Main {Main=java.util.concurrent.CountDownLatch@1e51060[Count =
1]}
*Test - Stopped Main
*Test - Main listener got data null
31-Aug-2010 13:52:27 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
INFO: Received end of stream, shutting down Main
*Test - Test Server Socket Thread closing server
*Test - server socket closed true true
*Test - Test Server Socket Thread server socket closed
*Test - server socket closed true true
*Test - afterTest() - end
31-Aug-2010 13:52:28 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM closed server socket
===== Test RespawnCrashedProcessesTestCase.testDontRespawnProcessWithExitCode0
===========
*Test - Test Server Socket Thread attempting to listen on 12934
*Test - Server listening on 12934
31-Aug-2010 13:52:28 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM listening on 12967
*Test - Starting Main java.util.concurrent.CountDownLatch@183f74d[Count = 1]
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess start
INFO: Starting Main
*Test - Listener started
*Test - null listener got data START:Main
*Test - Start received for Main {Main=java.util.concurrent.CountDownLatch@183f74d[Count =
1]}
*Test - Started Main
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: Main connected to port 1315
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for Main
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Started
*Test - Main listener got data MSG:Main:Main-Exit0
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): Main-Exiting
31-Aug-2010 13:52:28 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
ERROR: Output stream handler for process Main caught an exception; shutting down
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at org.jboss.as.process.StreamUtils.readChar(StreamUtils.java:57)
at org.jboss.as.process.StreamUtils.readWord(StreamUtils.java:44)
at org.jboss.as.process.ManagedProcess$OutputStreamHandler.run(ManagedProcess.java:182)
at java.lang.Thread.run(Thread.java:619)
*Test - Test Listener Socket Thread socket closed
*Test - Test Server Socket Thread closing server
*Test - server socket closed true true
31-Aug-2010 13:52:29 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM closed server socket
*Test - afterTest() - end
===== Test RespawnCrashedProcessesTestCase.testDelayInRespawningProcessesBeforeGivingUp
===========
*Test - Test Server Socket Thread server socket closed
*Test - server socket closed true true
*Test - Test Server Socket Thread attempting to listen on 12934
*Test - Server listening on 12934
*Test - Starting KillMe java.util.concurrent.CountDownLatch@b2fd8f[Count = 1]
31-Aug-2010 13:52:29 org.jboss.as.process.ManagedProcess start
INFO: Starting KillMe
31-Aug-2010 13:52:29 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM listening on 12967
*Test - Listener started
*Test - null listener got data START:KillMe
*Test - Start received for KillMe {KillMe=java.util.concurrent.CountDownLatch@b2fd8f[Count
= 1]}
*Test - Started KillMe
31-Aug-2010 13:52:29 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: KillMe connected to port 1317
31-Aug-2010 13:52:29 org.jboss.as.process.ManagedProcess setSocket
INFO: Initializing socket for KillMe
31-Aug-2010 13:52:29 org.jboss.as.process.ManagedProcess$ErrorStreamHandler run
ERROR: (remote-process-debug): KillMe-Started
*Test - Test Server Socket Thread closing server
*Test - server socket closed true true
*Test - afterTest() - end
*Test - Test Listener Socket Thread socket closed
31-Aug-2010 13:52:29 org.jboss.as.process.ProcessManagerMaster$ServerSocketListener run
INFO: PM closed server socket
*Test - Test Server Socket Thread server socket closed
*Test - server socket closed true true
31-Aug-2010 13:52:29 org.jboss.as.process.ManagedProcess$OutputStreamHandler run
INFO: Received end of stream, shutting down KillMe
-------------------------------------------------------------------------------
Test set: org.jboss.as.process.test.RespawnCrashedProcessesTestCase
-------------------------------------------------------------------------------
Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 3.546 sec <<<
FAILURE!
testRespawnKilledProcess(org.jboss.as.process.test.RespawnCrashedProcessesTestCase) Time
elapsed: 0.5 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0> but was:<-1073741515>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at junit.framework.Assert.assertEquals(Assert.java:201)
at
org.jboss.as.process.test.RespawnCrashedProcessesTestCase.killProcess(RespawnCrashedProcessesTestCase.java:212)
at
org.jboss.as.process.test.RespawnCrashedProcessesTestCase.testRespawnKilledProcess(RespawnCrashedProcessesTestCase.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
testDelayInRespawningProcessesBeforeGivingUp(org.jboss.as.process.test.RespawnCrashedProcessesTestCase)
Time elapsed: 0.203 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0> but was:<-1073741515>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at junit.framework.Assert.assertEquals(Assert.java:201)
at
org.jboss.as.process.test.RespawnCrashedProcessesTestCase.killProcess(RespawnCrashedProcessesTestCase.java:212)
at
org.jboss.as.process.test.RespawnCrashedProcessesTestCase.runDelayInRespawningProcessesBeforeGivingUp(RespawnCrashedProcessesTestCase.java:152)
at
org.jboss.as.process.test.RespawnCrashedProcessesTestCase.testDelayInRespawningProcessesBeforeGivingUp(RespawnCrashedProcessesTestCase.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)