From 63f4d5118174a0260316ed4a3be6a8fcc9b487c3 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 25 Apr 2006 11:25:42 +0000 Subject: updated 2 check files for script test/clitest --- test/files/cli/test1/Main.scala | 2 +- test/files/cli/test2/Main.check.scalac | 4 ---- test/files/cli/test3/Main.check.scalac | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'test') diff --git a/test/files/cli/test1/Main.scala b/test/files/cli/test1/Main.scala index 9958d6a54c..885651e0ee 100644 --- a/test/files/cli/test1/Main.scala +++ b/test/files/cli/test1/Main.scala @@ -1,7 +1,7 @@ package test1 object Main { def main(args: Array[String]) = { - val arg = if (args.length > 0) args(0) else "?" + val arg = if (args != null && args.length > 0) args(0) else "?" Console.println("1: test " + arg + " passed") } } diff --git a/test/files/cli/test2/Main.check.scalac b/test/files/cli/test2/Main.check.scalac index ab0b5c66da..3f3244da74 100644 --- a/test/files/cli/test2/Main.check.scalac +++ b/test/files/cli/test2/Main.check.scalac @@ -46,7 +46,3 @@ where possible options include: -Xgenerics Use generic Java types one error found -files/cli/test2/Main.scala:5 error: not found: value test1 - test1.Main.main(args) - ^ -one error found diff --git a/test/files/cli/test3/Main.check.scalac b/test/files/cli/test3/Main.check.scalac index ddddcb3d9a..3f3244da74 100644 --- a/test/files/cli/test3/Main.check.scalac +++ b/test/files/cli/test3/Main.check.scalac @@ -46,7 +46,3 @@ where possible options include: -Xgenerics Use generic Java types one error found -files/cli/test3/Main.scala:5 error: not found: value test1 - test1.Main.main(args) - ^ -one error found -- cgit v1.2.3