From f910d2174b2eedf411ffd1b91d5f744ebae4a55a Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 25 Sep 2011 20:24:26 +0200 Subject: [PATCH] Disable java gssapi tests because of 7077640 and 7077646 --- tests/java/check-kinit.in | 53 +++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/tests/java/check-kinit.in b/tests/java/check-kinit.in index 1f9e3fd0c..b55950eaa 100644 --- a/tests/java/check-kinit.in +++ b/tests/java/check-kinit.in @@ -106,30 +106,39 @@ java \ KerberosInit > output.tmp 2>&1 || { cat output.tmp ; exit 1; } -echo "start server" -java \ - -Dsun.security.krb5.debug=true \ - -Djava.security.krb5.conf="${objdir}"/krb5.conf \ - -Djavax.security.auth.useSubjectCredsOnly=false \ - -Djava.security.auth.login.config="${srcdir}/jaas.conf" \ - jgssapi_server > output.tmp 2>&1 & -javapid=$! -sleep 5 +# Disabled because of: +# +# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077646 +# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077640 +# -trap "kill -9 ${kdcpid} ${javapid}; echo signal killing kdc java; exit 1;" EXIT +if false ; then -echo "Getting client initial tickets"; > messages.log -${kinit} --password-file=${objdir}/foopassword lha@$R || \ - { echo "kinit failed" ; exit 1; } - -env KRB5CCNAME=${cache} \ - ${gssclient} --port=4717 --service=host localhost || exit 1 - -sleep 5 - -kill ${javapid} - -grep 'Exception in thread' output.tmp && exit 1 + echo "start server" + java \ + -Dsun.security.krb5.debug=true \ + -Djava.security.krb5.conf="${objdir}"/krb5.conf \ + -Djavax.security.auth.useSubjectCredsOnly=false \ + -Djava.security.auth.login.config="${srcdir}/jaas.conf" \ + jgssapi_server > output.tmp 2>&1 & + javapid=$! + sleep 5 + + trap "kill -9 ${kdcpid} ${javapid}; echo signal killing kdc java; exit 1;" EXIT + + echo "Getting client initial tickets"; > messages.log + ${kinit} --password-file=${objdir}/foopassword lha@$R || \ + { echo "kinit failed" ; exit 1; } + + env KRB5CCNAME=${cache} \ + ${gssclient} --port=4717 --service=host localhost || exit 1 + + sleep 5 + + kill ${javapid} + + grep 'Exception in thread' output.tmp && exit 1 +fi echo "Done"