From ec1011a8d8861f7b4aefe9439288cb8b90b6c4bc Mon Sep 17 00:00:00 2001 From: Olivier Blanvillain Date: Fri, 10 Feb 2017 14:38:54 +0100 Subject: Fix dotr/dotc to handle corrupted .packages --- bin/test/TestScripts.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/test') diff --git a/bin/test/TestScripts.scala b/bin/test/TestScripts.scala index 025ee7c90..58fecac3c 100644 --- a/bin/test/TestScripts.scala +++ b/bin/test/TestScripts.scala @@ -91,9 +91,9 @@ class TestScripts { s"Project recompiled when it didn't need to be. Status $ret, output:$lineSep$output") } - /** dotc script should work after deleting .packages */ + /** dotc script should work after corrupting .packages */ @Test def reCreatesPackagesIfNecessary = doUnlessWindows { - delete("./.packages") + executeScript("sed -i.old 's/2.1/2.X/' ./.packages") // That's going to replace 2.11 with 2.X1 val (retFirstBuild, _) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala") assert(retFirstBuild == 0, "building dotc failed") } -- cgit v1.2.3