diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-10-22 16:31:24 -0700 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-10-22 16:31:24 -0700 |
commit | 0c2d73755b3db80d976231b44b66107db5412426 (patch) | |
tree | 91db88841f128a8f3896ea51822705f79063b4c9 /test/disabled | |
parent | 3160bd0ed9727dece26290c1bcffe61e2b51b7a0 (diff) | |
parent | 04e2dbb29830d0e511cdfa8c132a9fad91d657ed (diff) | |
download | scala-0c2d73755b3db80d976231b44b66107db5412426.tar.gz scala-0c2d73755b3db80d976231b44b66107db5412426.tar.bz2 scala-0c2d73755b3db80d976231b44b66107db5412426.zip |
Merge pull request #3071 from xeno-by/topic/temporarily-disable-sync-tests
temporarily disables run/reflection-sync-subtypes
Diffstat (limited to 'test/disabled')
-rw-r--r-- | test/disabled/run/reflection-sync-subtypes.check | 0 | ||||
-rw-r--r-- | test/disabled/run/reflection-sync-subtypes.scala | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/disabled/run/reflection-sync-subtypes.check b/test/disabled/run/reflection-sync-subtypes.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/disabled/run/reflection-sync-subtypes.check diff --git a/test/disabled/run/reflection-sync-subtypes.scala b/test/disabled/run/reflection-sync-subtypes.scala new file mode 100644 index 0000000000..7f75a464ac --- /dev/null +++ b/test/disabled/run/reflection-sync-subtypes.scala @@ -0,0 +1,20 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + val n = 1000 + val rng = new scala.util.Random() + val tasks = List( + () => typeOf[List[Int]] <:< typeOf[List[T] forSome { type T }], + () => typeOf[List[T] forSome { type T }] <:< typeOf[List[Any]], + () => typeOf[Map[Int, Object]] <:< typeOf[Iterable[(Int, String)]], + () => typeOf[Expr[Any] { val mirror: rootMirror.type }] <:< typeOf[Expr[List[List[List[Int]]]]{ val mirror: rootMirror.type }]) + val perms = tasks.permutations.toList + val diceRolls = List.fill(n)(rng.nextInt(perms.length)) + val threads = (1 to n) map (i => new Thread(s"Reflector-$i") { + override def run(): Unit = { + val result = perms(diceRolls(i - 1)).map(_()) + assert(result.sorted == List(false, false, true, true)) + } + }) + threads foreach (_.start) +}
\ No newline at end of file |