changeset 4524:4574445f35ac

7076415: sun/security/krb5/runNameEquals.sh failed on sles 10 Reviewed-by: xuelei
author weijun
date Fri, 12 Aug 2011 11:20:45 +0800
parents 79bd5691d85f
children cb83fe13af98
files test/sun/security/krb5/Krb5NameEquals.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/krb5/Krb5NameEquals.java	Thu Aug 11 13:34:25 2011 -0700
+++ b/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");