changeset 18542:7b1fa08a804e

8017453: ReplayCache tests fail on multiple platforms Reviewed-by: xuelei
author weijun
date Mon, 24 Jun 2013 16:25:28 +0800
parents a974731db859
children f3305b091190
files jdk/test/sun/security/krb5/auto/ReplayCacheExpunge.java jdk/test/sun/security/krb5/auto/ReplayCacheTestProc.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/sun/security/krb5/auto/ReplayCacheExpunge.java	Sat Jun 22 08:20:11 2013 +0100
+++ b/jdk/test/sun/security/krb5/auto/ReplayCacheExpunge.java	Mon Jun 24 16:25:28 2013 +0800
@@ -41,6 +41,9 @@
     static final Random rand = new Random();
 
     public static void main(String[] args) throws Exception {
+        // Make sure clockskew is default value
+        System.setProperty("java.security.krb5.conf", "nothing");
+
         int count = Integer.parseInt(args[0]);
         ReplayCache cache = ReplayCache.getInstance("dfl:./");
         AuthTimeWithHash a1 =
--- a/jdk/test/sun/security/krb5/auto/ReplayCacheTestProc.java	Sat Jun 22 08:20:11 2013 +0100
+++ b/jdk/test/sun/security/krb5/auto/ReplayCacheTestProc.java	Mon Jun 24 16:25:28 2013 +0800
@@ -71,6 +71,12 @@
             int mode = 0;   // native(1), random(0), java(-1)
             boolean random = true;      // random experiments choreograph
 
+            // Do not test interop with native GSS on some platforms
+            String os = System.getProperty("os.name", "???");
+            if (!os.startsWith("SunOS") && !os.startsWith("Linux")) {
+                mode = -1;
+            }
+
             try {
                 Class<?> clazz = Class.forName(
                         "com.sun.security.auth.module.UnixSystem");