diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-04 08:25:30 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-04 08:25:30 +0000 |
commit | 8006cc6760b30274676ae5359c27b49e5cbf5670 (patch) | |
tree | 24fe2d61e0a0068b86e65484ffca97f910d1230c /test/files/run/repl-exceptions.scala | |
parent | 5df51cc5a6ead1f9d68d1e988cda3a1698daf708 (diff) | |
download | scala-8006cc6760b30274676ae5359c27b49e5cbf5670.tar.gz scala-8006cc6760b30274676ae5359c27b49e5cbf5670.tar.bz2 scala-8006cc6760b30274676ae5359c27b49e5cbf5670.zip |
Fix for some repl bitrot.
Exception handling beset by entropy. Restored some order. The output of
the test may not be stable across platforms, in which case I'll take the
usual step of reverting it, thereby achieving victory over failure by
testing nothing instead of testing something. No review.
Diffstat (limited to 'test/files/run/repl-exceptions.scala')
-rw-r--r-- | test/files/run/repl-exceptions.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/repl-exceptions.scala b/test/files/run/repl-exceptions.scala new file mode 100644 index 0000000000..aaf37c8ae7 --- /dev/null +++ b/test/files/run/repl-exceptions.scala @@ -0,0 +1,12 @@ +import scala.tools.partest.ReplTest +import scala.tools.util.Javap + +object Test extends ReplTest { + override def extraSettings = "-Yrich-exceptions" + def code = """ + |sys.SystemProperties.traceSourcePath setValue "" + |def f = sys.error("hi mom") + |f + |lastException.show + """.stripMargin +} |