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

Better cleanup for jdk/test/sun/security/pkcs12/P12SecretKey.java

XMLWordPrintable

    • b22
    • generic
    • generic

        P12SecretKey.java creates test*.test files in the default system temp directory:

        cat -n jdk/test/sun/security/pkcs12/P12SecretKey.java
          [...]
            66 File ksFile = File.createTempFile("test", ".test");

        These files are not cleaned up at the end of the run.

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

              myankelevich Mikhail Yankelevich
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: