From 7e78154bb4f11fcac7144b800d118d71db4bbfaf Mon Sep 17 00:00:00 2001 From: phaller Date: Wed, 9 Jul 2008 16:51:32 +0000 Subject: [PATCH] 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 --- build.xml | 2 +- src/partest/scala/tools/partest/nest/CompileManager.scala | 6 ++++-- src/partest/scala/tools/partest/nest/FileManager.scala | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.xml b/build.xml index f4f452a5d..8fabcdd6d 100644 --- a/build.xml +++ b/build.xml @@ -921,7 +921,7 @@ BOOTRAPING TEST AND TEST SUITE + timeout="1200000"> diff --git a/src/partest/scala/tools/partest/nest/CompileManager.scala b/src/partest/scala/tools/partest/nest/CompileManager.scala index 995bad0f8..b580ed0d2 100644 --- a/src/partest/scala/tools/partest/nest/CompileManager.scala +++ b/src/partest/scala/tools/partest/nest/CompileManager.scala @@ -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 diff --git a/src/partest/scala/tools/partest/nest/FileManager.scala b/src/partest/scala/tools/partest/nest/FileManager.scala index dea0e0e7d..bbf50730a 100644 --- a/src/partest/scala/tools/partest/nest/FileManager.scala +++ b/src/partest/scala/tools/partest/nest/FileManager.scala @@ -55,5 +55,5 @@ trait FileManager { var SCALAC_OPTS = System.getProperty("scalatest.scalac_opts", "-deprecation") - var timeout = "600000" + var timeout = "1200000" }