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

test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind

    XMLWordPrintable

Details

    • b25
    • 20
    • b17
    • generic
    • generic

    Backports

      Description

        test/jdk/java/io/File/TempDirDoesNotExist.java creates temp files in
          System.getProperty("user.home")
        using:
          File.createTempFile("prefix", ".suffix");

        There is no finally block in the test to delete the TempFile later.

        After a few weeks of running tests this leaves test systems with many prefix*.suffix files littering the user home directory.

        This test also appears to be one which would benefit from conversion to JUnit 5.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                tbell Tim Bell
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: