From e8a121e9e1ade3f283f42fceb3c18f30a8468f57 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 5 Apr 2010 06:24:22 +0000 Subject: If I work on this patch any longer without chec... If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.] --- test/attic/files/cli/test2/Main.check.j9vm5 | 4 ++ test/attic/files/cli/test2/Main.check.java | 6 +++ test/attic/files/cli/test2/Main.check.java5 | 6 +++ test/attic/files/cli/test2/Main.check.java5_api | 24 ++++++++++ test/attic/files/cli/test2/Main.check.java5_j9 | 36 ++++++++++++++ test/attic/files/cli/test2/Main.check.javac | 27 +++++++++++ test/attic/files/cli/test2/Main.check.javac5 | 28 +++++++++++ test/attic/files/cli/test2/Main.check.javac6 | 33 +++++++++++++ test/attic/files/cli/test2/Main.check.jikes | 9 ++++ test/attic/files/cli/test2/Main.check.jikes5 | 9 ++++ test/attic/files/cli/test2/Main.check.scala | 24 ++++++++++ test/attic/files/cli/test2/Main.check.scala_api | 37 +++++++++++++++ test/attic/files/cli/test2/Main.check.scala_j9 | 15 ++++++ test/attic/files/cli/test2/Main.check.scalac | 63 +++++++++++++++++++++++++ test/attic/files/cli/test2/Main.check.scalaint | 45 ++++++++++++++++++ test/attic/files/cli/test2/Main.java | 8 ++++ test/attic/files/cli/test2/Main.scala | 8 ++++ 17 files changed, 382 insertions(+) create mode 100644 test/attic/files/cli/test2/Main.check.j9vm5 create mode 100644 test/attic/files/cli/test2/Main.check.java create mode 100644 test/attic/files/cli/test2/Main.check.java5 create mode 100644 test/attic/files/cli/test2/Main.check.java5_api create mode 100644 test/attic/files/cli/test2/Main.check.java5_j9 create mode 100644 test/attic/files/cli/test2/Main.check.javac create mode 100644 test/attic/files/cli/test2/Main.check.javac5 create mode 100644 test/attic/files/cli/test2/Main.check.javac6 create mode 100644 test/attic/files/cli/test2/Main.check.jikes create mode 100644 test/attic/files/cli/test2/Main.check.jikes5 create mode 100644 test/attic/files/cli/test2/Main.check.scala create mode 100644 test/attic/files/cli/test2/Main.check.scala_api create mode 100644 test/attic/files/cli/test2/Main.check.scala_j9 create mode 100644 test/attic/files/cli/test2/Main.check.scalac create mode 100644 test/attic/files/cli/test2/Main.check.scalaint create mode 100644 test/attic/files/cli/test2/Main.java create mode 100644 test/attic/files/cli/test2/Main.scala (limited to 'test/attic/files/cli/test2') diff --git a/test/attic/files/cli/test2/Main.check.j9vm5 b/test/attic/files/cli/test2/Main.check.j9vm5 new file mode 100644 index 0000000000..8f4fdf8aa1 --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.j9vm5 @@ -0,0 +1,4 @@ +env: -cpp: No such file or directory +env: test2.Main: No such file or directory +env: -cp: No such file or directory +2: 1: test 3 passed diff --git a/test/attic/files/cli/test2/Main.check.java b/test/attic/files/cli/test2/Main.check.java new file mode 100644 index 0000000000..aca383de3e --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.java @@ -0,0 +1,6 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +2: 1: test 1 passed (1) +2: 1: test 2 passed (1) +2: 1: test 3 passed (1) +2: 1: test 4 passed (2) diff --git a/test/attic/files/cli/test2/Main.check.java5 b/test/attic/files/cli/test2/Main.check.java5 new file mode 100644 index 0000000000..aca383de3e --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.java5 @@ -0,0 +1,6 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +2: 1: test 1 passed (1) +2: 1: test 2 passed (1) +2: 1: test 3 passed (1) +2: 1: test 4 passed (2) diff --git a/test/attic/files/cli/test2/Main.check.java5_api b/test/attic/files/cli/test2/Main.check.java5_api new file mode 100644 index 0000000000..4ff775c3da --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.java5_api @@ -0,0 +1,24 @@ +|-- allclasses-frame.html +|-- allclasses-noframe.html +|-- constant-values.html +|-- deprecated-list.html +|-- help-doc.html +|-- index-all.html +|-- index.html +|-- overview-tree.html +|-- package-list +|-- resources +| `-- inherit.gif +|-- stylesheet.css +|-- test1 +| |-- Main.html +| |-- package-frame.html +| |-- package-summary.html +| `-- package-tree.html +`-- test2 + |-- Main.html + |-- package-frame.html + |-- package-summary.html + `-- package-tree.html + +3 directories, 19 files diff --git a/test/attic/files/cli/test2/Main.check.java5_j9 b/test/attic/files/cli/test2/Main.check.java5_j9 new file mode 100644 index 0000000000..2dcb6e892a --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.java5_j9 @@ -0,0 +1,36 @@ +JVMJ9VM007E Command-line option unrecognised: -cpp +Could not create the Java virtual machine. + +Usage: java [-options] class [args...] + (to execute a class) + or java [-jar] [-options] jarfile [args...] + (to execute a jar file) + +where options include: + -cp -classpath + set search path for application classes and resources + -D= + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version: + require the specified version to run + -showversion print product version and continue + -jre-restrict-search | -no-jre-restrict-search + include/exclude user private JREs in the version search + -agentlib:[=] + load native agent library , e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:[=] + load native agent library by full pathname + -javaagent:[=] + load Java programming language agent, see java.lang.instrument + -? -help print this help message + -X print help on non-standard options + -assert print help on assert options + +The java class is not found: test2.Main +The java class is not found: test2.Main +The java class is not found: test2.Main +The java class is not found: test2.Main diff --git a/test/attic/files/cli/test2/Main.check.javac b/test/attic/files/cli/test2/Main.check.javac new file mode 100644 index 0000000000..c40c0a7a89 --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.javac @@ -0,0 +1,27 @@ +javac: invalid flag: -dd +Usage: javac +where possible options include: + -g Generate all debugging info + -g:none Generate no debugging info + -g:{lines,vars,source} Generate only some debugging info + -nowarn Generate no warnings + -verbose Output messages about what the compiler is doing + -deprecation Output source locations where deprecated APIs are used + -classpath Specify where to find user class files + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -d Specify where to place generated class files + -encoding Specify character encoding used by source files + -source Provide source compatibility with specified release + -target Generate class files for specific VM version + -help Print a synopsis of standard options + +files/cli/test2/Main.java:6: package test1 does not exist + test1.Main.main(args); + ^ +1 error +files/cli/test2/Main.java:6: package test1 does not exist + test1.Main.main(args); + ^ +1 error diff --git a/test/attic/files/cli/test2/Main.check.javac5 b/test/attic/files/cli/test2/Main.check.javac5 new file mode 100644 index 0000000000..0ac32b056e --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.javac5 @@ -0,0 +1,28 @@ +javac: invalid flag: -dd +Usage: javac +where possible options include: + -g Generate all debugging info + -g:none Generate no debugging info + -g:{lines,vars,source} Generate only some debugging info + -nowarn Generate no warnings + -verbose Output messages about what the compiler is doing + -deprecation Output source locations where deprecated APIs are used + -classpath Specify where to find user class files + -cp Specify where to find user class files + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -endorseddirs Override location of endorsed standards path + -d Specify where to place generated class files + -encoding Specify character encoding used by source files + -source Provide source compatibility with specified release + -target Generate class files for specific VM version + -version Version information + -help Print a synopsis of standard options + -X Print a synopsis of nonstandard options + -J Pass directly to the runtime system + +files/cli/test2/Main.java:6: package test1 does not exist + test1.Main.main(args); + ^ +1 error diff --git a/test/attic/files/cli/test2/Main.check.javac6 b/test/attic/files/cli/test2/Main.check.javac6 new file mode 100644 index 0000000000..350d3253bc --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.javac6 @@ -0,0 +1,33 @@ +javac: invalid flag: -dd +Usage: javac +where possible options include: + -g Generate all debugging info + -g:none Generate no debugging info + -g:{lines,vars,source} Generate only some debugging info + -nowarn Generate no warnings + -verbose Output messages about what the compiler is doing + -deprecation Output source locations where deprecated APIs are used + -classpath Specify where to find user class files and annotation processors + -cp Specify where to find user class files and annotation processors + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -endorseddirs Override location of endorsed standards path + -proc:{none, only} Control whether annotation processing and/or compilation is done. + -processor Name of the annotation processor to run; bypasses default discovery process + -processorpath Specify where to find annotation processors + -d Specify where to place generated class files + -s Specify where to place generated source files + -encoding Specify character encoding used by source files + -source Provide source compatibility with specified release + -target Generate class files for specific VM version + -version Version information + -help Print a synopsis of standard options + -A[key[=value]] Options to pass to annotation processors + -X Print a synopsis of nonstandard options + -J Pass directly to the runtime system + +files/cli/test2/Main.java:5: package test1 does not exist + test1.Main.main(args); + ^ +1 error diff --git a/test/attic/files/cli/test2/Main.check.jikes b/test/attic/files/cli/test2/Main.check.jikes new file mode 100644 index 0000000000..97943e8347 --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.jikes @@ -0,0 +1,9 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. + +Found 1 semantic error compiling "files/cli/test2/Main.java": + + 6. test1.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test1" was found in type "test2.Main". diff --git a/test/attic/files/cli/test2/Main.check.jikes5 b/test/attic/files/cli/test2/Main.check.jikes5 new file mode 100644 index 0000000000..97943e8347 --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.jikes5 @@ -0,0 +1,9 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. + +Found 1 semantic error compiling "files/cli/test2/Main.java": + + 6. test1.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test1" was found in type "test2.Main". diff --git a/test/attic/files/cli/test2/Main.check.scala b/test/attic/files/cli/test2/Main.check.scala new file mode 100644 index 0000000000..7e5f17625b --- /dev/null +++ b/test/attic/files/cli/test2/Main.check.scala @@ -0,0 +1,24 @@ +unknown option: '-cpp' +scala [