Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8183336

Better cleanup for jdk/test/java/lang/module/customfs/ModulesInCustomFileSystem.java

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:

      Description

      ModulesInCustomFileSystem.java creates temporary directories containing .jar file(s) for the test, but does not clean up later:

      cat -n jdk/test/java/lang/module/customfs/ModulesInCustomFileSystem.java
         [...]
           62 Path jar = Files.createTempDirectory("mlib").resolve("modules.jar");
         [...]
          73 Path contents = Files.createTempDirectory("contents");
         [...]
          78 Path jar = Files.createTempDirectory("mlib").resolve("modules.jar");

      A better approach would be to create temporary test directories and files under the jtreg property user.dir instead, if user.dir is defined.

      During a jtreg run, user.dir has the value $PWD/JTwork/scratch

        Attachments

          Activity

            People

            • Assignee:
              alanb Alan Bateman
              Reporter:
              tbell Tim Bell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: