Skip to content
Snippets Groups Projects
Commit 2ff63ddb authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Increase timeout of compilation to make travis happy

parent c0b4ac13
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import leon.utils._
import scala.io.Source
import org.scalatest._
import org.scalatest.time.Span
import org.scalatest.concurrent._
import org.scalatest.time.SpanSugar._
import org.scalatest.exceptions.TestFailedException
......@@ -102,13 +103,13 @@ trait LeonTestSuite extends FunSuite with Timeouts with BeforeAndAfterEach {
}
}
override def test(name: String, tags: Tag*)(body: => Unit) {
super.test(name, tags: _*) {
def testWithTimeout(name: String, timeout: Span)(body: => Unit) {
super.test(name) {
val id = testIdentifier(name)
val ts = now()
failAfter(5.minutes) {
failAfter(timeout) {
try {
body
} catch {
......@@ -133,6 +134,11 @@ trait LeonTestSuite extends FunSuite with Timeouts with BeforeAndAfterEach {
}
}
override def test(name: String, tags: Tag*)(body: => Unit) {
testWithTimeout(name, 5.minutes)(body)
}
protected val all : String=>Boolean = (s : String) => true
......
......@@ -3,6 +3,7 @@
package leon.test.testcases
import leon._
import org.scalatest.time.SpanSugar._
import test.LeonTestSuite
import java.io.File
import org.scalatest.ParallelTestExecution
......@@ -36,7 +37,7 @@ class TestCasesCompile extends LeonTestSuite {
val slashes = resourceDir(baseDir).getAbsolutePath.split("/").toList.size
test("Compiling testcases") {
testWithTimeout("Compiling testcases", 10.minutes) {
val all = (filesIn(baseDir+"repair/") ++
filesIn(baseDir+"runtime/") ++
filesIn(baseDir+"synthesis/") ++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment