提交 c934eeb5 编写于 作者: D drchase

8007776: Test6852078.java timeouts

Summary: if more than 100 seconds and more than 100 iterations have both passed, then exit is allowed.
Reviewed-by: kvn
上级 d1681c35
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -27,7 +27,7 @@
* @bug 6852078
* @summary Disable SuperWord optimization for unsafe read/write
*
* @run main/othervm Test6852078
* @run main Test6852078
*/
import java.util.*;
......@@ -50,7 +50,11 @@ public class Test6852078 {
}
public static void main(String [] args) {
long start = System.currentTimeMillis();
for (int i=0; i<2000; i++) {
// To protect slow systems from test-too-long timeouts
if ((i > 100) && ((System.currentTimeMillis() - start) > 100000))
break;
Test6852078 t = new Test6852078(args);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册