[
https://issues.apache.org/jira/browse/SUREFIRE-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tibor Digana updated SUREFIRE-1561:
-----------------------------------
Description:
Out integration test {{Surefire1177TestngParallelSuitesIT}} fails.
On Ubuntu/Linux it looks like the messages are mix up when the tests run in
parallel.
The root cause is a method which is not synchronized.
{{TestSetRunListener#writeTestOutput( byte[] buf, int off, int len, boolean
stdout )}}
was:
Out integration test {{Surefire1177TestngParallelSuitesIT}} fails.
To fix this the {{System.out}} should be synchronized.
On Ubuntu/Linux it looks like the JVM delegates {{println}} unexpectedly
delegates to {{print}} with every single character and then the messages mix up.
> Logs in Parallel Tests are mixed up when forkMode=never or forkCount=0
> ----------------------------------------------------------------------
>
> Key: SUREFIRE-1561
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1561
> Project: Maven Surefire
> Issue Type: Task
> Components: documentation
> Reporter: Tibor Digana
> Assignee: Tibor Digana
> Priority: Major
> Labels: integration-tests
> Fix For: 2.22.1
>
>
> Out integration test {{Surefire1177TestngParallelSuitesIT}} fails.
> On Ubuntu/Linux it looks like the messages are mix up when the tests run in
> parallel.
> The root cause is a method which is not synchronized.
> {{TestSetRunListener#writeTestOutput( byte[] buf, int off, int len, boolean
> stdout )}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)