7076415: sun/security/krb5/runNameEquals.sh failed on sles 10
authorweijun
Fri, 12 Aug 2011 11:20:45 +0800
changeset 10327 37a3f951eb3a
parent 10326 9feeb910a1e2
child 10328 06c93c42bca0
7076415: sun/security/krb5/runNameEquals.sh failed on sles 10 Reviewed-by: xuelei
jdk/test/sun/security/krb5/Krb5NameEquals.java
--- a/jdk/test/sun/security/krb5/Krb5NameEquals.java	Thu Aug 11 13:34:25 2011 -0700
+++ b/jdk/test/sun/security/krb5/Krb5NameEquals.java	Fri Aug 12 11:20:45 2011 +0800
@@ -31,8 +31,8 @@
 
 public class Krb5NameEquals {
 
-    private static String NAME_STR1 = "service@host";
-    private static String NAME_STR2 = "service@host2";
+    private static String NAME_STR1 = "service@localhost";
+    private static String NAME_STR2 = "service2@localhost";
     private static final Oid MECH;
 
     static {
@@ -57,7 +57,7 @@
         GSSName name3 = mgr.createName(NAME_STR1,
             GSSName.NT_HOSTBASED_SERVICE, MECH);
 
-        if (!name1.equals(name3) || !name1.equals(name3) ||
+        if (!name1.equals(name1) || !name1.equals(name3) ||
             !name1.equals((Object) name1) ||
             !name1.equals((Object) name3)) {
             System.out.println("Error: should be the same name");