Builds with surefire on Windows OS prevent deletion of files with output from tests.

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Builds with surefire on Windows OS prevent deletion of files with output from tests. These files are created when maven.test.redirectTestOutputToFile is activated.

      There is a known problem with memory mapped io on windows os:
      "[...] Windows does not allow a mapped file to be deleted [...]"
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154

      hudson.tasks.junit.SuiteResult uses memory mapped io to read the redirected test output.

      I have attached a patch (noMemoryMappedIoForWindows-V2.patch), that reactivates an older implementation without memory mapped io on windows. I think this patch is only a temporary solution, because it reintroduces a memory problem. This problem was solved with memory mapped io.

        1. noMemoryMappedIoForWindows.patch
          4 kB
          Marc-Olaf Jaschke
        2. noMemoryMappedIoForWindows.patch
          13 kB
          Marc-Olaf Jaschke
        3. noMemoryMappedIoForWindows-V2.patch
          4 kB
          Marc-Olaf Jaschke

            Assignee:
            Unassigned
            Reporter:
            Marc-Olaf Jaschke
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: