--- 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");