Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5734

Set java.io.tmpdir for surefire

    XMLWordPrintable

Details

    • Hide
      Show
      cd wildfly-core/testsuite/standalone update CliCompletionTestCase#testAppendCustomFileAbsoluteDirCompletion to keep created files mvn test -Dtest=CliCompletionTestCase#testAppendCustomFileAbsoluteDirCompletion check target for tempFile*.tmp on JDK11 a file is present on JDK17 a file is not present

    Description

      A change in getting a value from java.io.tmpdir has been introduced in JDK 16. The change affects surefire: even though we set java.io.tmpdir in jboss-parent the value is not propagated in time and a default system value is used instead. Therefore, (for example using Files.createTempDirectory) temporary test files are created outside the project and can pollute filesystem. To fix this we can set the value using the <argLine> configuration element.

      Attachments

        Activity

          People

            okotek@redhat.com Ondrej Kotek
            okotek@redhat.com Ondrej Kotek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: