Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1983

Corrupted STDOUT by directly writing to native stream in forked JVM 1. [setupJunitLogger() should be called AFTER startCapture()]

    XMLWordPrintableJSON

Details

    Description

      The warning messages "Corrupted STDOUT by directly writing to native stream in forked JVM 1." appear in Surefire JUnit5 provider. In order to reproduce this issue with old versions, Log4j or slf4j logger should be used. The previous fixes were not reliable. The real root cause of this issue is based on incorrect order of methods startCapture() and setupJunitLogger().

      setupJunitLogger() should be called AFTER startCapture()

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            tibordigana Tibor Digana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: