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

Better cleanup for jdk/test/java/io/File/createTempFile/NameTooLong.java

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Description

      NameTooLong.java creates files in the default temp directory, but does not clean up later.

      cat -n jdk/test/java/io/File/createTempFile/NameTooLong.java
       [...]
          46 f = File.createTempFile(ps[0], ps[1]);

      The preferred 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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: