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

Better cleanup for javax/imageio/AllowSearch.java

XMLWordPrintable

    • b23
    • generic
    • generic

        AllowSearch.java creates an imageio*.tmp file in the default temp directory, but does not clean it up later.

        cat -n jdk/test/javax/imageio/AllowSearch.java
           [...]
            49 File f = File.createTempFile("imageio", ".tmp");

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

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

              sveerabhadra Shashidhara Veerabhadraiah (Inactive)
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: