summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-20 16:28:46 +0000
committerPaul Phillips <paulp@improving.org>2011-11-20 16:28:46 +0000
commit053e224677a4581c8b0721f42650003a27b2aaf3 (patch)
treeaf668ad8390cd7ddbe6eaca81bcbc915bce69722 /test/disabled
parenteeb111c41d88c7503400e08d1ceca7826f349aa4 (diff)
downloadscala-053e224677a4581c8b0721f42650003a27b2aaf3.tar.gz
scala-053e224677a4581c8b0721f42650003a27b2aaf3.tar.bz2
scala-053e224677a4581c8b0721f42650003a27b2aaf3.zip
Disabling failing javap test.
Really hope we can sort this all out as it was a miracle to get this test in place in the first place.
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/run/t4532.check15
-rw-r--r--test/disabled/run/t4532.scala34
2 files changed, 49 insertions, 0 deletions
diff --git a/test/disabled/run/t4532.check b/test/disabled/run/t4532.check
new file mode 100644
index 0000000000..47a9809248
--- /dev/null
+++ b/test/disabled/run/t4532.check
@@ -0,0 +1,15 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala>
+
+scala> object Bippy { class Dingus ; object Bop }
+defined module Bippy
+
+scala> :javap Bippy.Dingus
+Compiled from "<console>"public class Bippy$Dingus extends java.lang.Object implements scala.ScalaObject{ public Bippy$Dingus();}
+scala> :javap Bippy.Bop
+Compiled from "<console>"public final class Bippy$Bop$ extends java.lang.Object implements scala.ScalaObject{ public static final Bippy$Bop$ MODULE$; public static {}; public Bippy$Bop$();}
+scala>
+
+scala>
diff --git a/test/disabled/run/t4532.scala b/test/disabled/run/t4532.scala
new file mode 100644
index 0000000000..0dabd2dca4
--- /dev/null
+++ b/test/disabled/run/t4532.scala
@@ -0,0 +1,34 @@
+import scala.tools.partest.ReplTest
+import scala.tools.util.Javap
+
+object Test extends ReplTest {
+
+ // ugh, windows
+ def expectedOutput =
+"""Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala>
+
+scala> object Bippy { class Dingus ; object Bop }
+defined module Bippy
+
+scala> :javap Bippy.Dingus
+Compiled from "<console>"public class Bippy$Dingus extends java.lang.Object implements scala.ScalaObject{ public Bippy$Dingus();}
+scala> :javap Bippy.Bop
+Compiled from "<console>"public final class Bippy$Bop$ extends java.lang.Object implements scala.ScalaObject{ public static final Bippy$Bop$ MODULE$; public static {}; public Bippy$Bop$();}
+scala>
+
+scala>
+"""
+
+ override def eval() =
+ if (Javap.isAvailable()) super.eval()
+ else expectedOutput.lines
+
+ def code = """
+ |object Bippy { class Dingus ; object Bop }
+ |:javap Bippy.Dingus
+ |:javap Bippy.Bop
+ """.stripMargin
+}