summaryrefslogtreecommitdiff
path: root/test/pending/run
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-20 16:19:23 +0300
committerEugene Burmako <xeno.by@gmail.com>2014-01-21 10:52:05 +0300
commitf142d854d3401728546ae6822662b7a3ad655a58 (patch)
treeaba604b431ee565890305f74ff32520c0e7c70d0 /test/pending/run
parent8c1505f1892624a8c74e63382eca161841e0bb57 (diff)
downloadscala-f142d854d3401728546ae6822662b7a3ad655a58.tar.gz
scala-f142d854d3401728546ae6822662b7a3ad655a58.tar.bz2
scala-f142d854d3401728546ae6822662b7a3ad655a58.zip
removes non-determinism in reflection-sync-potpourri
Depending on the environment in which the test is run, s1 can be either “String” or “java.lang.String”. This is one of the known non-deterministic behaviors of our reflection, caused by prefix stripping only working for packages defined in the root mirror. Until we fix this, I suggest we make the test more lenient.
Diffstat (limited to 'test/pending/run')
-rw-r--r--test/pending/run/reflection-sync-potpourri.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pending/run/reflection-sync-potpourri.scala b/test/pending/run/reflection-sync-potpourri.scala
index 0ad5f2ab66..0c96974df7 100644
--- a/test/pending/run/reflection-sync-potpourri.scala
+++ b/test/pending/run/reflection-sync-potpourri.scala
@@ -24,7 +24,7 @@ object Test extends App {
override def run(): Unit = {
val s1 = foo("42")
val s2 = perms(diceRolls(i - 1)).map(x => force(x)).sorted.mkString(", ")
- assert(s1 == "java.lang.String")
+ assert(s1 == "String" || s1 == "java.lang.String")
assert(s2 == "java.lang.annotation.Annotation, java.lang.reflect.Method, scala.io.BufferedSource, scala.io.Codec")
}
})