diff options
author | Seth Tisue <seth@tisue.net> | 2017-03-20 17:13:56 -0700 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2017-03-20 17:24:33 -0700 |
commit | 25048bc73741846107c18ed01e0e9f6f07785379 (patch) | |
tree | c1c9d60002fec74fc13af354e51bb3d688b33902 /test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala | |
parent | 0563c4b23cdc7ed6c05e9defe2a675df4d838347 (diff) | |
download | scala-25048bc73741846107c18ed01e0e9f6f07785379.tar.gz scala-25048bc73741846107c18ed01e0e9f6f07785379.tar.bz2 scala-25048bc73741846107c18ed01e0e9f6f07785379.zip |
rm -r test/{flaky,disabled*,checker-tests,support,debug}
keeping this stuff, somewhere, forever and ever and ever is what
version control is for.
who dares disturb the ancient and accursed tomb of all this code...?
Diffstat (limited to 'test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala')
-rw-r--r-- | test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala b/test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala deleted file mode 100644 index cef9d2a5ed..0000000000 --- a/test/disabled/presentation/shutdown-deadlock/ShutdownDeadlockTest.scala +++ /dev/null @@ -1,45 +0,0 @@ -import scala.tools.nsc.interactive._ -import tests._ - -object Test extends InteractiveTest { - val Reps = 30 - import compiler._ - - def askSomething(): Response[Tree] = { - // println("*") - Thread.sleep(50) - ask { compiler.askStructure(true)(sourceFiles.head, _) } - } - - def fireAsks() { - val jobs1 = for (i <- 1 until Reps) yield { - if (i % 10 == 0) { - askReload(sourceFiles) - } - askSomething - } - - for ((j, i) <- jobs1.zipWithIndex) { - j.get(40000) match { - case None => - println(i + ": TIMEOUT") - exit(1) // no need to delay the test any longer - case r => - } - } - compiler.askShutdown() - - println("No timeouts") - } - - override def main(args: Array[String]) { - new Thread("Asking") { - override def run() { - fireAsks() - } - }.start() - - Thread.sleep(800) - compiler.askShutdown() - } -}
\ No newline at end of file |