summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-08-08 20:24:56 -0700
committerSom Snytt <som.snytt@gmail.com>2013-08-08 20:26:39 -0700
commit593024d9b31e9d693de2303f41ceb4783a56abc9 (patch)
tree066d6ad8296c42134180d4dcb9b5034eee65247f
parenta9927445a3033fef56d802595ee3423de33765f1 (diff)
downloadscala-593024d9b31e9d693de2303f41ceb4783a56abc9.tar.gz
scala-593024d9b31e9d693de2303f41ceb4783a56abc9.tar.bz2
scala-593024d9b31e9d693de2303f41ceb4783a56abc9.zip
Log file is zapped before test run
Not all test configurations handle an existing log file. In particular, kicking off javac will append to the log file and always fail the test. Don't even ask how I know that.
-rw-r--r--src/partest/scala/tools/partest/nest/Runner.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/partest/scala/tools/partest/nest/Runner.scala b/src/partest/scala/tools/partest/nest/Runner.scala
index b64c2bc8ab..1d41095fce 100644
--- a/src/partest/scala/tools/partest/nest/Runner.scala
+++ b/src/partest/scala/tools/partest/nest/Runner.scala
@@ -715,6 +715,9 @@ class Runner(val testFile: File, fileManager: FileManager, val testRunParams: Te
}
def run(): TestState = {
+ // javac runner, for one, would merely append to an existing log file, so just delete it before we start
+ logFile.delete()
+
if (kind == "neg" || (kind endsWith "-neg")) runNegTest()
else kind match {
case "pos" => runTestCommon(true)