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

Better cleanup in java/nio/file/Files/probeContentType/ParallelProbes.java

XMLWordPrintable

    • b17
    • generic
    • generic

      ParallelProbes.java creates a prefix*.json file in the default temp directory, but does not clean it up later.

      cat -n jdk/test/java/nio/file/Files/probeContentType/ParallelProbes.java
         [...]
          50 final Path p = Files.createTempFile("prefix", ".json");

      A better approach would be to create temporary test files under the jtreg property user.dir instead.

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

            bpb Brian Burkhalter
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: