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

Better test cleanup for jdk/jfr/api/consumer/TestRecordingFile.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • hotspot
    • jfr
    • b15
    • generic
    • generic

        TestRecordingFile.java is using the two argument version of Files.CreateTempFile(), for example at line 65:

                Path valid = Files.createTempFile("three-event-recording", ".jfr");

        This causes .jfr files to be left behind in /tmp. Over time, it starts to add up:

        $ hostname
        sca00lnu

        $ uname -a
        CYGWIN_NT-6.3-WOW sca00lnu 1.7.35(0.287/5/3) 2015-03-04 12:07 i686 Cygwin

        $ ls /tmp/*.jfr | wc -l
        228

              egahlin Erik Gahlin
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: