From 83176b0016a0162bc186a126435af0f7e75fe336 Mon Sep 17 00:00:00 2001 From: Jan Stourac Date: Wed, 9 Aug 2023 11:03:39 +0200 Subject: [PATCH] [WFCORE-6454] Use TCP/IP process communication for surefire plugin This change utilizes new TCP/IP communication for surefire execution [1]. By default, the communication writes to STDOUT which may lead to similar messages in the execution output if something else also writes there at wrong time: ``` [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file ... .dumpstream. ``` This change should mittigate such warnings and also should reduce number of open files during execution which may lead to crash on some systems with `nofile` limit set quite low. Truth is that this issue hasn't been seen in this upstream WildFly Core project, still I believe this change should be beneficial avoiding eventual issue in the future. [1] https://maven.apache.org/surefire/maven-surefire-plugin/examples/process-communication.html --- testsuite/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/pom.xml b/testsuite/pom.xml index 106ec92836b..fe137580cab 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -154,6 +154,10 @@ See https://issues.apache.org/jira/browse/MNG-2496 --> 2.7.3 + + 3.1.2 + @@ -323,6 +327,7 @@ maven-surefire-plugin false + ${testLogToFile} -Djava.util.logging.manager=org.jboss.logmanager.LogManager