summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-16 09:50:30 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-16 09:52:35 +0200
commit68b57fdc84d0d97c0965199c7e283d52f1234a6d (patch)
tree44b5d95185e7e96d1163dfe952cca1c97d5a125b /test/disabled
parent6a81025ab2f9a798c8b12eea8f8e7e4e83d3b6e4 (diff)
downloadscala-68b57fdc84d0d97c0965199c7e283d52f1234a6d.tar.gz
scala-68b57fdc84d0d97c0965199c7e283d52f1234a6d.tar.bz2
scala-68b57fdc84d0d97c0965199c7e283d52f1234a6d.zip
SI-7845 Disable test for JSR 233
For Paul, it steals focus when it runs. For me, it fails with some platform specific extra output: -ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory could not be instantiated: java.lang.UnsatisfiedLinkError: no AppleScriptEngine in java.library.path n: Object = 10 12345678910 So off to the holding pen for now.
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/run/t7843-jsr223-service.check2
-rw-r--r--test/disabled/run/t7843-jsr223-service.scala18
2 files changed, 20 insertions, 0 deletions
diff --git a/test/disabled/run/t7843-jsr223-service.check b/test/disabled/run/t7843-jsr223-service.check
new file mode 100644
index 0000000000..a668df3567
--- /dev/null
+++ b/test/disabled/run/t7843-jsr223-service.check
@@ -0,0 +1,2 @@
+n: Object = 10
+12345678910
diff --git a/test/disabled/run/t7843-jsr223-service.scala b/test/disabled/run/t7843-jsr223-service.scala
new file mode 100644
index 0000000000..e2ea850698
--- /dev/null
+++ b/test/disabled/run/t7843-jsr223-service.scala
@@ -0,0 +1,18 @@
+/*DISABLED:
+ For Paul, it steals focus when it runs.
+
+ For me, it fails with some platform specific extra output:
+
+ -ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngin
+ n: Object = 10
+ 12345678910
+*/
+import javax.script._
+import scala.tools.nsc.interpreter.IMain
+
+object Test extends App {
+ val engine = new ScriptEngineManager getEngineByName "scala"
+ engine.asInstanceOf[IMain].settings.usejavacp.value = true
+ engine put ("n", 10)
+ engine eval "1 to n.asInstanceOf[Int] foreach print"
+}