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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • security-libs

      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:
            2 Start watching this issue

              Created:
              Updated: