test/sun/security/krb5/auto/ReplayCacheTestProc.java

Print this page
rev 7487 : 8017453: ReplayCache tests fail on multiple platforms

*** 69,78 **** --- 69,84 ---- int nx = 50; // number of experiments int np = 5; // number of peers (services) 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("Windows") || os.contains("OS X")) { + mode = -1; + } + try { Class<?> clazz = Class.forName( "com.sun.security.auth.module.UnixSystem"); uid = (int)(long)(Long) clazz.getMethod("getUid").invoke(clazz.newInstance());