diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-16 23:35:18 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-02-18 19:24:05 +0100 |
commit | 5aac086d63807331e380bb2d861e4e07800b1f63 (patch) | |
tree | 0846ffcc133ce47ba1355e960959295d1e6f1bc2 /tests/disabled/scalac-dependent/run | |
parent | 6df672c7e7be65d7be1cd6524c610aed4f35178c (diff) | |
download | dotty-5aac086d63807331e380bb2d861e4e07800b1f63.tar.gz dotty-5aac086d63807331e380bb2d861e4e07800b1f63.tar.bz2 dotty-5aac086d63807331e380bb2d861e4e07800b1f63.zip |
Disable tests that require scala-compiler
This is necessary if we ever want to get rid of our dependency on scala-compiler
Diffstat (limited to 'tests/disabled/scalac-dependent/run')
-rw-r--r-- | tests/disabled/scalac-dependent/run/t1618.scala | 11 | ||||
-rw-r--r-- | tests/disabled/scalac-dependent/run/t7775.scala | 17 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/disabled/scalac-dependent/run/t1618.scala b/tests/disabled/scalac-dependent/run/t1618.scala new file mode 100644 index 000000000..248af9b4f --- /dev/null +++ b/tests/disabled/scalac-dependent/run/t1618.scala @@ -0,0 +1,11 @@ + +object Test extends dotty.runtime.LegacyApp { + import scala.tools.nsc.io._ + + val dir: VirtualDirectory = new VirtualDirectory("foo", None) + dir.subdirectoryNamed("foo") + assert(dir.lookupName("foo", true) != null) + +} + + diff --git a/tests/disabled/scalac-dependent/run/t7775.scala b/tests/disabled/scalac-dependent/run/t7775.scala new file mode 100644 index 000000000..bc6a67d0e --- /dev/null +++ b/tests/disabled/scalac-dependent/run/t7775.scala @@ -0,0 +1,17 @@ +import scala.concurrent.{duration, Future, Await, ExecutionContext} +import scala.tools.nsc.Settings +import ExecutionContext.Implicits.global + +// Was failing pretty regularly with a ConcurrentModificationException as +// WrappedProperties#systemProperties iterated directly over the mutable +// global system properties map. +object Test { + def main(args: Array[String]): Unit = { + val tries = 1000 // YMMV + val compiler = Future { + for(_ <- 1 to tries) new Settings(_ => {}) + } + for(i <- 1 to tries * 10) System.setProperty(s"foo$i", i.toString) + Await.result(compiler, duration.Duration.Inf) + } +} |