aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotty
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test/dotty')
-rw-r--r--compiler/test/dotty/tools/DottyTypeStealer.scala2
-rw-r--r--compiler/test/dotty/tools/ShowClassTests.scala2
-rw-r--r--compiler/test/dotty/tools/dotc/ParallelTesting.scala3
3 files changed, 4 insertions, 3 deletions
diff --git a/compiler/test/dotty/tools/DottyTypeStealer.scala b/compiler/test/dotty/tools/DottyTypeStealer.scala
index ff6e67e41..727cd9e7d 100644
--- a/compiler/test/dotty/tools/DottyTypeStealer.scala
+++ b/compiler/test/dotty/tools/DottyTypeStealer.scala
@@ -19,7 +19,7 @@ object DottyTypeStealer extends DottyTest {
implicit val ctx = context
val findValDef: (List[ValDef], tpd.Tree) => List[ValDef] =
(acc , tree) => { tree match {
- case t: ValDef if t.name.startsWith(dummyName.toTermName) => t :: acc
+ case t: ValDef if t.name.startsWith(dummyName) => t :: acc
case _ => acc
}
}
diff --git a/compiler/test/dotty/tools/ShowClassTests.scala b/compiler/test/dotty/tools/ShowClassTests.scala
index 4aa9e8845..66ae80169 100644
--- a/compiler/test/dotty/tools/ShowClassTests.scala
+++ b/compiler/test/dotty/tools/ShowClassTests.scala
@@ -65,7 +65,7 @@ class ShowClassTests extends DottyTest {
debug_println(s"blacklisted package: $path")
else {
for (
- sym <- pkg.info.decls if sym.owner == pkg.moduleClass && !(sym.name contains '$')
+ sym <- pkg.info.decls if sym.owner == pkg.moduleClass && !(sym.name.toString contains '$')
) {
debug_println(s"showing $sym in ${pkg.fullName}")
if (sym is PackageVal) showPackage(sym.asTerm)
diff --git a/compiler/test/dotty/tools/dotc/ParallelTesting.scala b/compiler/test/dotty/tools/dotc/ParallelTesting.scala
index 45de03b48..80c56808b 100644
--- a/compiler/test/dotty/tools/dotc/ParallelTesting.scala
+++ b/compiler/test/dotty/tools/dotc/ParallelTesting.scala
@@ -423,7 +423,8 @@ trait ParallelTesting { self =>
extends Test(testSources, times, threadLimit, suppressAllOutput) {
private def runMain(dir: JFile, testSource: TestSource): Array[String] = {
def renderStackTrace(ex: Throwable): String =
- ex.getStackTrace
+ if (ex == null) ""
+ else ex.getStackTrace
.takeWhile(_.getMethodName != "invoke0")
.mkString(" ", "\n ", "")