diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2011-01-28 11:33:27 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2011-01-28 11:33:27 +0000 |
commit | 7048ac2d664f876243b92cce006d06692e372859 (patch) | |
tree | 999aede8fc4529add5f7d6714585f18ec36932f2 /test/disabled/presentation/simple-tests/src/Tester.scala | |
parent | 4bc1fae32f8e1ae640e85ed15a577c557e18e385 (diff) | |
download | scala-7048ac2d664f876243b92cce006d06692e372859.tar.gz scala-7048ac2d664f876243b92cce006d06692e372859.tar.bz2 scala-7048ac2d664f876243b92cce006d06692e372859.zip |
Made the presentation compiler reporter in inte...
Made the presentation compiler reporter in interactive tests show up
error messages.no review.
Diffstat (limited to 'test/disabled/presentation/simple-tests/src/Tester.scala')
-rw-r--r-- | test/disabled/presentation/simple-tests/src/Tester.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/disabled/presentation/simple-tests/src/Tester.scala b/test/disabled/presentation/simple-tests/src/Tester.scala index 09e08727bf..cb62187514 100644 --- a/test/disabled/presentation/simple-tests/src/Tester.scala +++ b/test/disabled/presentation/simple-tests/src/Tester.scala @@ -9,14 +9,14 @@ import collection.mutable.ArrayBuffer class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { - val reporter/*?*/ = new StoreReporter/*!*/ - val compiler/*?*/ = new Global(settings, reporter) + val reporter = new StoreReporter + val compiler = new Global(settings, reporter) def askAndListen[T, U](msg: String, arg: T, op: (T, Response[U]) => Unit) { - if (settings.verbose.value) print(msg+" "+arg+": ") + if (settings.verbose./*!*/value) print(msg+" "+arg+": ") val TIMEOUT = 10 // ms - val limit = System.currentTimeMillis() + randomDelayMillis - val res = new Response[U] + val limit/*?*/ = System.currentTimeMillis() + randomDelayMillis + val res/*?*/ = new Response[U] op(arg, res) while (!res.isComplete && !res.isCancelled) { if (System.currentTimeMillis() > limit) { @@ -24,7 +24,7 @@ class Tester(ntests: Int, inputs: Array[SourceFile], settings: Settings) { } else res.get(TIMEOUT) match { case Some(Left(t)) => /**/ - if (settings.verbose.value) println(t) + if (settings./*!*/verbose.value) println(t) case Some(Right(ex)) => ex.printStackTrace() println(ex) |