8186228: sun/security/krb5/auto/KdcPolicy.java fails with "java.lang.Exception: Does not match. Output is c30000c30000c30000" jdk-11+6
authorweijun
Thu, 22 Mar 2018 08:09:51 +0800
changeset 49276 3acb379b8672
parent 49275 c639a6b33c5c
child 49277 cf9e3c8607b7
8186228: sun/security/krb5/auto/KdcPolicy.java fails with "java.lang.Exception: Does not match. Output is c30000c30000c30000" Reviewed-by: mullan
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");