From 55803b2657a473a1ebbebfd9ab7ba4c1b4e27d38 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 7 Apr 2017 13:47:07 +0200 Subject: Implement meta tests suggested by @DarkDimius Note that merging this as-is will not protect us against fork bombs. This is because the timeout of tests is currently 180 seconds. A forkbomb that is allowed to run for that long... --- compiler/test/dotty/tools/vulpix/VulpixTests.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'compiler/test/dotty/tools/vulpix') diff --git a/compiler/test/dotty/tools/vulpix/VulpixTests.scala b/compiler/test/dotty/tools/vulpix/VulpixTests.scala index 154008bd1..2483bf6f0 100644 --- a/compiler/test/dotty/tools/vulpix/VulpixTests.scala +++ b/compiler/test/dotty/tools/vulpix/VulpixTests.scala @@ -59,4 +59,19 @@ class VulpixTests extends ParallelTesting { @Test def runOutRedirects: Unit = compileFile("../tests/partest-test/i2147.scala", defaultOptions).expectFailure.checkRuns() + + @Test def infiteNonRec: Unit = + compileFile("../tests/partest-test/infinite.scala", defaultOptions).expectFailure.checkRuns() + + @Test def infiteTailRec: Unit = + compileFile("../tests/partest-test/infiniteTail.scala", defaultOptions).expectFailure.checkRuns() + + @Test def infiniteAlloc: Unit = + compileFile("../tests/partest-test/infiniteAlloc.scala", defaultOptions).expectFailure.checkRuns() + + @Test def deadlock: Unit = + compileFile("../tests/partest-test/deadlock.scala", defaultOptions).expectFailure.checkRuns() + + @Test def forkbomb: Unit = + compileFile("../tests/partest-test/forkbomb.scala", defaultOptions).expectFailure.checkRuns() } -- cgit v1.2.3