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

Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java

    Details

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

      Backports

        Description

        CanWriteSequence.java and WriteAfterAbort.java are creating files in the system default temp directory:

        % cat -n jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java jdk/test/javax/imageio/plugins/shared/WriteAfterAbort.java | grep createTemp
            57 final File file = File.createTempFile("temp", ".img");
            68 final File file = File.createTempFile("temp", ".img");


        These files are left behind, even though the tests also set file.deleteOnExit():

        The preferred approach would be to create temporary test directories and files under the jtreg property test.dir instead, if it is defined.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jdv Jayathirth D V
                  Reporter:
                  tbell Tim Bell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: