# HG changeset patch # User weijun # Date 1378696100 -28800 # Node ID d0406202be67b9380cb19be87e6be785680c243a # Parent f0fd09e20528564639a3ca24dfc3f0605b29a4f2 8024046: Test sun/security/krb5/runNameEquals.sh failed on 7u45 Embedded linux-ppc* Reviewed-by: xuelei diff -r f0fd09e20528 -r d0406202be67 jdk/test/sun/security/krb5/runNameEquals.sh --- a/jdk/test/sun/security/krb5/runNameEquals.sh Sat Sep 07 17:05:22 2013 -0700 +++ b/jdk/test/sun/security/krb5/runNameEquals.sh Mon Sep 09 11:08:20 2013 +0800 @@ -22,7 +22,7 @@ # # @test -# @bug 6317711 6944847 +# @bug 6317711 6944847 8024046 # @summary Ensure the GSSName has the correct impl which respects # the contract for equals and hashCode across different configurations. @@ -56,6 +56,15 @@ PATHSEP=":" FILESEP="/" NATIVE=true + # Not all *nix has native GSS libs installed + krb5-config --libs gssapi 2> /dev/null + if [ $? != 0 ]; then + # Fedora has a different path + /usr/kerberos/bin/krb5-config --libs gssapi 2> /dev/null + if [ $? != 0 ]; then + NATIVE=false + fi + fi ;; CYGWIN* ) PATHSEP=";"