diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-10 15:01:13 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-10 15:01:13 +0000 |
commit | 28e6744e2305f523d16458a9d8c748903e33aca5 (patch) | |
tree | 23ecfffb8c26dcb509e1bff21580b7dbf9403af3 /src/partest | |
parent | 68808e80c4574e419a440c31d24ad206870e28b3 (diff) | |
download | scala-28e6744e2305f523d16458a9d8c748903e33aca5.tar.gz scala-28e6744e2305f523d16458a9d8c748903e33aca5.tar.bz2 scala-28e6744e2305f523d16458a9d8c748903e33aca5.zip |
A somewhat more realistic attempt to fix the bu...
A somewhat more realistic attempt to fix the build, no review. This
introduces a repl command line option -Yrepl-sync to inhibit the
asynchronous path which makes repl startup seem so snappy. And then it
uses it in the repl tests.
Diffstat (limited to 'src/partest')
-rw-r--r-- | src/partest/scala/tools/partest/ReplTest.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/partest/scala/tools/partest/ReplTest.scala b/src/partest/scala/tools/partest/ReplTest.scala index dd21e7906a..5822328e68 100644 --- a/src/partest/scala/tools/partest/ReplTest.scala +++ b/src/partest/scala/tools/partest/ReplTest.scala @@ -18,11 +18,12 @@ abstract class ReplTest extends App { def extraSettings: String = "" def settings: Settings = { val s = new Settings - s processArgumentString extraSettings + s processArgumentString (extraSettings + " -Yrepl-sync -Xnojline") s } def eval() = ILoop.runForTranscript(code, settings).lines drop 1 def show() = eval() foreach println - show() + try show() + catch { case t => println(t) ; sys.exit(1) } } |