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

closed/com/oracle/jfr/os/TestCPULoad.java doesn't get events.

XMLWordPrintable

    • jfr

      closed/com/oracle/jfr/os/TestCPULoad.java
      fails with

      java.lang.AssertionError: Assertion failed: 0 > 0 : Expected at least one event : []
      at jrockit.Asserts.assertNotEmpty(Asserts.java:117)
      at TestCPULoad.main(TestCPULoad.java:27)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)

      Under some circumstances FlightRecorder doesn't generate these events, the tests expects them never the less.

      RULE closed/com/oracle/jfr/os/TestCPULoad.java Exception java.lang.AssertionError: Assertion failed: ... Expected at least one event ...

            mgronlun Markus Grönlund
            iaberg Ingemar Åberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: