diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-04-07 13:47:07 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-04-12 11:31:15 +0200 |
commit | 55803b2657a473a1ebbebfd9ab7ba4c1b4e27d38 (patch) | |
tree | 4a562a3316999788fe42ef3ec9c1b3fff84b3fd9 /compiler/test/dotty/tools/vulpix | |
parent | 8fe0d14c1d2bdc26088fc4a29388b961ae1552a2 (diff) | |
download | dotty-55803b2657a473a1ebbebfd9ab7ba4c1b4e27d38.tar.gz dotty-55803b2657a473a1ebbebfd9ab7ba4c1b4e27d38.tar.bz2 dotty-55803b2657a473a1ebbebfd9ab7ba4c1b4e27d38.zip |
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...
Diffstat (limited to 'compiler/test/dotty/tools/vulpix')
-rw-r--r-- | compiler/test/dotty/tools/vulpix/VulpixTests.scala | 15 |
1 files changed, 15 insertions, 0 deletions
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() } |