From 70129c97d30dcbdf305c1e012c91e05b999f5cfa Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 9 Jul 2015 18:39:22 -0400 Subject: temporarily disable failing indylambda test Adriaan and Jason agree that the test is failing because the test itself needs reworking, not because it's showing a real problem. so, disabling it for now in the interest of getting 2.12.0-M2 out the door. --- test/disabled/run/indylambda-specialization.scala | 15 +++++++++++++++ test/files/run/indylambda-specialization.scala | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 test/disabled/run/indylambda-specialization.scala delete mode 100644 test/files/run/indylambda-specialization.scala (limited to 'test') diff --git a/test/disabled/run/indylambda-specialization.scala b/test/disabled/run/indylambda-specialization.scala new file mode 100644 index 0000000000..2c66073e90 --- /dev/null +++ b/test/disabled/run/indylambda-specialization.scala @@ -0,0 +1,15 @@ +object Test { + def assertApply(expected: Boolean) = { + val frames = Thread.currentThread.getStackTrace.takeWhile(_.getMethodName != "main") + val usesObjectApply = frames.exists(_.getMethodName == "apply") + assert(expected == usesObjectApply, frames.mkString("\n")) + } + def assertSpecialized() = assertApply(false) + def assertUnspecialized() = assertApply(true) + def main(args: Array[String]): Unit = { + ((i: String) => {assertUnspecialized(); i}).apply("") + (() => {assertSpecialized(); 0}).apply() + ((i: Int) => {assertSpecialized(); i}).apply(0) + ((i: Int, j: Int) => {assertSpecialized(); i + j}).apply(0, 0) + } +} diff --git a/test/files/run/indylambda-specialization.scala b/test/files/run/indylambda-specialization.scala deleted file mode 100644 index 2c66073e90..0000000000 --- a/test/files/run/indylambda-specialization.scala +++ /dev/null @@ -1,15 +0,0 @@ -object Test { - def assertApply(expected: Boolean) = { - val frames = Thread.currentThread.getStackTrace.takeWhile(_.getMethodName != "main") - val usesObjectApply = frames.exists(_.getMethodName == "apply") - assert(expected == usesObjectApply, frames.mkString("\n")) - } - def assertSpecialized() = assertApply(false) - def assertUnspecialized() = assertApply(true) - def main(args: Array[String]): Unit = { - ((i: String) => {assertUnspecialized(); i}).apply("") - (() => {assertSpecialized(); 0}).apply() - ((i: Int) => {assertSpecialized(); i}).apply(0) - ((i: Int, j: Int) => {assertSpecialized(); i + j}).apply(0, 0) - } -} -- cgit v1.2.3