Increased timeout in build.xml to make all tests pass.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@15517 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
11b5b05893
commit
7e78154bb4
|
@ -921,7 +921,7 @@ BOOTRAPING TEST AND TEST SUITE
|
|||
|
||||
<target name="test.suite" depends="pack.done">
|
||||
<partest showlog="yes" erroronfailed="yes" javacmd="${java.home}/bin/java"
|
||||
timeout="600000">
|
||||
timeout="1200000">
|
||||
<classpath>
|
||||
<path refid="pack.classpath"/>
|
||||
<fileset dir="${test.dir}/files/lib" includes="*.jar"/>
|
||||
|
|
|
@ -170,6 +170,8 @@ class CompileManager(val fileManager: FileManager) {
|
|||
compiler = new /*ReflectiveCompiler*/ DirectCompiler(fileManager)
|
||||
}
|
||||
|
||||
val delay = fileManager.timeout.toLong
|
||||
|
||||
def withTimeout(file: File)(thunk: => Boolean): Boolean = {
|
||||
createSeparateCompiler()
|
||||
|
||||
|
@ -179,9 +181,9 @@ class CompileManager(val fileManager: FileManager) {
|
|||
parent ! (self, thunk)
|
||||
}
|
||||
|
||||
receiveWithin(fileManager.timeout.toLong) {
|
||||
receiveWithin(delay) {
|
||||
case TIMEOUT =>
|
||||
NestUI.verbose("action timed out")
|
||||
println("compilation timed out")
|
||||
false
|
||||
case Exit(from, reason) if from == child =>
|
||||
val From = from
|
||||
|
|
|
@ -55,5 +55,5 @@ trait FileManager {
|
|||
|
||||
var SCALAC_OPTS = System.getProperty("scalatest.scalac_opts", "-deprecation")
|
||||
|
||||
var timeout = "600000"
|
||||
var timeout = "1200000"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue