diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-08-08 20:24:56 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-08-08 20:26:39 -0700 |
commit | 593024d9b31e9d693de2303f41ceb4783a56abc9 (patch) | |
tree | 066d6ad8296c42134180d4dcb9b5034eee65247f /src | |
parent | a9927445a3033fef56d802595ee3423de33765f1 (diff) | |
download | scala-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/partest/scala/tools/partest/nest/Runner.scala | 3 |
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) |