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

[TESTBUG][upstream]-Xcomp选项test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java随机失败 #169

Open
sendaoYan opened this issue Nov 3, 2023 · 1 comment
Assignees

Comments

@sendaoYan
Copy link
Collaborator

默认选项运行50次全部PASS:

expoert test=test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java
function runJtreg() { jtreg -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

image

-Xcomp运行50次全部fail:

expoert test=test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java
function runJtreg() { jtreg -Xcomp -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`
STDERR:
java.lang.RuntimeException: Failed: call took 3573 ms, expected less than 3000 ms
	at PortUnreachable.handleException(PortUnreachable.java:101)
	at TestBase.launch(TestBase.java:84)
	at TestBase.run(TestBase.java:50)
	at PortUnreachable.main(PortUnreachable.java:60)

image
1.log

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

No branches or pull requests

1 participant