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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
      jfr
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: