Permalink
Browse files

An attempt to make tests deterministic.

The nondeterminism presently showing itself in
presentation/implicit-member is a consequence of the
presentation compiler tests relying on details of the
behavior of toString calls. We need to stomp this out,
but it will take a while. Based on the check file
changes enclosed with this commit, this will suffice
for the presentation compiler tests. A broader assault
will have to take place, but not yet.
  • Loading branch information...
paulp committed May 19, 2013
1 parent 16e92f4 commit b6757e11a1970480a60741235fc86f01d8957e07
@@ -297,6 +297,11 @@ trait CompilerControl { self: Global =>
def implicitlyAdded = false
private def accessible_s = if (accessible) "" else "[inaccessible] "
+ def forceInfoString = {
+ definitions.fullyInitializeSymbol(sym)
+ definitions.fullyInitializeType(tpe)
+ infoString
+ }
def infoString = s"$accessible_s${sym.defStringSeenAs(tpe)}"
}
@@ -27,7 +27,7 @@ private[tests] trait CoreTestDefs
reporter.println("retrieved %d members".format(members.size))
compiler ask { () =>
val filtered = members.filterNot(member => (member.sym.name string_== "getClass") || member.sym.isConstructor)
- reporter println (filtered.map(_.infoString).sorted mkString "\n")
+ reporter println (filtered.map(_.forceInfoString).sorted mkString "\n")
}
}
}
@@ -7,7 +7,7 @@ retrieved 124 members
[inaccessible] protected[package lang] def clone(): Object
[inaccessible] protected[package lang] def finalize(): Unit
[inaccessible] protected[this] def reversed: List[B]
-class GroupedIterator[B <: <?>] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
+class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
def +(other: String): String
def ++[B >: B](that: => scala.collection.GenTraversableOnce[B]): Iterator[B]
def ->[B](y: B): (java.util.Iterator[B], B)
@@ -15,7 +15,7 @@ def formatted(fmtstr: String): String
def hashCode(): Int
def toString(): String
def →[B](y: B): (Implicit.type, B)
-final class AppliedImplicit[A <: <?>] extends AnyRef
+final class AppliedImplicit[A] extends AnyRef
final def !=(x$1: Any): Boolean
final def !=(x$1: AnyRef): Boolean
final def ##(): Int

0 comments on commit b6757e1

Please sign in to comment.