changeset 49741:3acb379b8672 jdk-11+6

8186228: sun/security/krb5/auto/KdcPolicy.java fails with "java.lang.Exception: Does not match. Output is c30000c30000c30000" Reviewed-by: mullan
author weijun
date Thu, 22 Mar 2018 08:09:51 +0800
parents c639a6b33c5c
children cf9e3c8607b7
files test/jdk/sun/security/krb5/auto/KdcPolicy.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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");