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

error in jtreg test jdk/jfr/api/consumer/TestRecordedFrame.java on linux-aarch64

XMLWordPrintable

    • jfr
    • b23
    • aarch64
    • linux

        We see errors in the test
        jdk/jfr/api/consumer/TestRecordedFrame.java

        on linuxaarch64 ; see the output below :

        :stdOut:
        Thu Apr 02 21:43:58 CEST 2020

        type: Interpreted
        bci: 6
        --------------------------------

        type: Interpreted


        :stdErr:
        Thu Apr 02 21:43:58 CEST 2020
        STATUS:Passed.
        --------------------------------
        java.lang.RuntimeException: assertEquals: expected true to equal false
                       at jdk.test.lib.Asserts.fail(Asserts.java:594)
                       at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
                       at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
                       at jdk.jfr.api.consumer.TestRecordedFrame.test(TestRecordedFrame.java:87)
                       at jdk.jfr.api.consumer.TestRecordedFrame.main(TestRecordedFrame.java:54)
                       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                       at java.base/java.lang.reflect.Method.invoke(Method.java:564)
                       at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                       at java.base/java.lang.Thread.run(Thread.java:832)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: assertEquals: expected true to equal false
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: assertEquals: expected true to equal false

        Looks like the error occurs here, when checking for interpreted frames :

        jdk/test/jdk/jdk/jfr/api/consumer/TestRecordedFrame.java


        83 Asserts.assertEquals(getLineNumber("main"), frame.getLineNumber());
        84 // Interpreted
        85 boolean isInterpreted = "Interpreted".equals(type);
        86 boolean expectedInterpreted = "true".equals(System.getProperty("interpreted"));
        87 Asserts.assertEquals(isInterpreted, expectedInterpreted);
        88 // BCI
        89 int bci = frame.getBytecodeIndex();
        90 System.out.println("bci: " + bci);
        91 Asserts.assertGreaterThan(bci, 0);

              ngasson Nick Gasson
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: