7186887: Test T6567415.java can fail on a slow machine

Reviewed-by: jjg, ksrini
This commit is contained in:
Alexander Zuev 2013-06-05 16:58:10 +04:00
parent 8ddd38c293
commit 63c141c512

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 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
@ -137,7 +137,7 @@ public class T6567415 {
}
};
t.start();
t.join(1000*10);
t.join(1000*60);
System.out.println(t.getState());
if (t.isAlive()) {
throw new RuntimeException("Error: compilation is looping");