# HG changeset patch # User weijun # Date 1521677391 -28800 # Node ID 3acb379b86725c47e7f33358cb22efa8752ae532 # Parent c639a6b33c5c8602ab7cc76c11083ab57eb0420a 8186228: sun/security/krb5/auto/KdcPolicy.java fails with "java.lang.Exception: Does not match. Output is c30000c30000c30000" Reviewed-by: mullan diff -r c639a6b33c5c -r 3acb379b8672 test/jdk/sun/security/krb5/auto/KdcPolicy.java --- a/test/jdk/sun/security/krb5/auto/KdcPolicy.java Wed Mar 21 16:55:34 2018 +0100 +++ b/test/jdk/sun/security/krb5/auto/KdcPolicy.java Thu Mar 22 08:09:51 2018 +0800 @@ -100,9 +100,11 @@ System.setProperty("java.security.krb5.conf", "alternative-krb5.conf"); // Check default timeout is 30s. Use real KDC only, otherwise too - // slow to wait for timeout. + // slow to wait for timeout. Each request (without preauth and with + // preauth) might be retried 3 times, and could fail if one fails for + // all 3 times. writeConf(-1, -1, p3); - test("c30000c30000"); + test("(c30000){2,6}|(c30000){3,6}-"); // 1. Default policy is tryLast //Security.setProperty("krb5.kdc.bad.policy", "tryLast");