提交 e0c26325 编写于 作者: W weijun

8017453: ReplayCache tests fail on multiple platforms

Reviewed-by: xuelei
上级 058e641f
......@@ -41,6 +41,9 @@ public class ReplayCacheExpunge {
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 =
......
......@@ -71,6 +71,12 @@ public class ReplayCacheTestProc {
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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册