Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jfr/event/io/TestInstrumentation.java run fail on linux-x64 by jdk8 #3605

Closed
sendaoYan opened this issue Apr 25, 2022 · 1 comment · Fixed by #3611
Closed

jfr/event/io/TestInstrumentation.java run fail on linux-x64 by jdk8 #3605

sendaoYan opened this issue Apr 25, 2022 · 1 comment · Fixed by #3611
Assignees

Comments

@sendaoYan
Copy link
Contributor

Describe the bug
jfr/event/io/TestInstrumentation.java run fail on linux-x64 by jdk8

To Reproduce

  1. build jdk8
bash configure --prefix=$PWD
make images
make install

2.run test

rm -rf tmp ; jtreg -v:fail,error -w tmp -nr -jdk:/apsarapangu/disk1/yansendao/openjdk/jdk8u/jvm/openjdk-1.8.0-internal ./openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/io/TestInstrumentation.java

Expected behavior
´test run pass, or add jfr/event/io/TestInstrumentation.java to Problemlist.txt

Actualed behavior

TestTransformation: Test failed in phase Retransformed
];
 stderr: [java.lang.RuntimeException: Wrong number of events: expected 4 to equal 7
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        at jdk.jfr.event.io.IOHelper.verifyEquals(IOHelper.java:60)
        at jdk.jfr.event.io.TestSocketEvents.test(TestSocketEvents.java:118)
        at jdk.jfr.event.io.TestSocketEvents.main(TestSocketEvents.java:63)
        at jdk.jfr.event.io.TestInstrumentation$TestMain.runAllTests(TestInstrumentation.java:194)
        at jdk.jfr.event.io.TestInstrumentation$TestMain.main(TestInstrumentation.java:179)
Exception in thread "main" java.lang.RuntimeException: Wrong number of events: expected 4 to equal 7
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        at jdk.jfr.event.io.IOHelper.verifyEquals(IOHelper.java:60)
        at jdk.jfr.event.io.TestSocketEvents.test(TestSocketEvents.java:118)
        at jdk.jfr.event.io.TestSocketEvents.main(TestSocketEvents.java:63)
        at jdk.jfr.event.io.TestInstrumentation$TestMain.runAllTests(TestInstrumentation.java:194)
        at jdk.jfr.event.io.TestInstrumentation$TestMain.main(TestInstrumentation.java:179)
]
 exitValue = 1

java.lang.RuntimeException: Expected to get exit value of [0]

        at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:396)
        at jdk.jfr.event.io.TestInstrumentation.launchTest(TestInstrumentation.java:289)
        at jdk.jfr.event.io.TestInstrumentation.main(TestInstrumentation.java:244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(Thread.java:750)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

test log from TKG:

extended.openjdk.log

Screenshots

Additional context
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants