Mercurial > hg > release > icedtea7-forest-2.6 > jdk
changeset 9888:81030235927f
8017453: ReplayCache tests fail on multiple platforms
Reviewed-by: xuelei
author | weijun |
---|---|
date | Mon, 24 Jun 2013 16:25:28 +0800 |
parents | 67659bed4467 |
children | e37926332404 |
files | test/sun/security/krb5/auto/ReplayCacheExpunge.java test/sun/security/krb5/auto/ReplayCacheTestProc.java |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/sun/security/krb5/auto/ReplayCacheExpunge.java Sun Feb 02 16:53:39 2020 +0000 +++ b/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/test/sun/security/krb5/auto/ReplayCacheTestProc.java Sun Feb 02 16:53:39 2020 +0000 +++ b/test/sun/security/krb5/auto/ReplayCacheTestProc.java Mon Jun 24 16:25:28 2013 +0800 @@ -73,6 +73,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");