diff options
author | michelou <michelou@epfl.ch> | 2006-05-12 16:27:50 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-05-12 16:27:50 +0000 |
commit | 7199ea34abfcc9c45147e6c5f6a18afa38cd3f46 (patch) | |
tree | 39d29b82947e3fcfcded0084ff885187e6f56b27 /test/files/cli | |
parent | 92dcada606ecce91a27db8e42f8caae6b04f5243 (diff) | |
download | scala-7199ea34abfcc9c45147e6c5f6a18afa38cd3f46.tar.gz scala-7199ea34abfcc9c45147e6c5f6a18afa38cd3f46.tar.bz2 scala-7199ea34abfcc9c45147e6c5f6a18afa38cd3f46.zip |
fixed error in file build.xml
fixed IBM J9 related error in file test/clitest
Diffstat (limited to 'test/files/cli')
-rw-r--r-- | test/files/cli/test1/Main.check.java | 6 | ||||
-rw-r--r-- | test/files/cli/test1/Main.check.java5_j9 | 4 | ||||
-rw-r--r-- | test/files/cli/test1/Main.check.jikes5 | 3 | ||||
-rw-r--r-- | test/files/cli/test1/Main.check.scala_j9 | 36 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.java | 6 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.java5_j9 | 36 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.javac | 4 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.jikes5 | 9 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.scala_j9 | 36 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.java | 10 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.java5_j9 | 36 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.javac | 8 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.jikes5 | 14 | ||||
-rw-r--r-- | test/files/cli/test3/Main.check.scala_j9 | 40 |
14 files changed, 242 insertions, 6 deletions
diff --git a/test/files/cli/test1/Main.check.java b/test/files/cli/test1/Main.check.java new file mode 100644 index 0000000000..64410de98f --- /dev/null +++ b/test/files/cli/test1/Main.check.java @@ -0,0 +1,6 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (2) diff --git a/test/files/cli/test1/Main.check.java5_j9 b/test/files/cli/test1/Main.check.java5_j9 new file mode 100644 index 0000000000..de454ef478 --- /dev/null +++ b/test/files/cli/test1/Main.check.java5_j9 @@ -0,0 +1,4 @@ +env: -cpp: No such file or directory +env: test1.Main: No such file or directory +env: -cp: No such file or directory +1: test 3 passed diff --git a/test/files/cli/test1/Main.check.jikes5 b/test/files/cli/test1/Main.check.jikes5 new file mode 100644 index 0000000000..cd891689db --- /dev/null +++ b/test/files/cli/test1/Main.check.jikes5 @@ -0,0 +1,3 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. diff --git a/test/files/cli/test1/Main.check.scala_j9 b/test/files/cli/test1/Main.check.scala_j9 new file mode 100644 index 0000000000..408327e1e7 --- /dev/null +++ b/test/files/cli/test1/Main.check.scala_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 <directories and zip/jar files separated by :> + set search path for application classes and resources + -D<name>=<value> + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version:<value> + 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:<libname>[=<options>] + load native agent library <libname>, e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:<pathname>[=<options>] + load native agent library by full pathname + -javaagent:<jarpath>[=<options>] + 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 + +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (4) diff --git a/test/files/cli/test2/Main.check.java b/test/files/cli/test2/Main.check.java new file mode 100644 index 0000000000..aca383de3e --- /dev/null +++ b/test/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/files/cli/test2/Main.check.java5_j9 b/test/files/cli/test2/Main.check.java5_j9 new file mode 100644 index 0000000000..2dcb6e892a --- /dev/null +++ b/test/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 <directories and zip/jar files separated by :> + set search path for application classes and resources + -D<name>=<value> + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version:<value> + 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:<libname>[=<options>] + load native agent library <libname>, e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:<pathname>[=<options>] + load native agent library by full pathname + -javaagent:<jarpath>[=<options>] + 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/files/cli/test2/Main.check.javac b/test/files/cli/test2/Main.check.javac index c25714eabb..c40c0a7a89 100644 --- a/test/files/cli/test2/Main.check.javac +++ b/test/files/cli/test2/Main.check.javac @@ -17,11 +17,11 @@ where possible options include: -target <release> Generate class files for specific VM version -help Print a synopsis of standard options -files/cli/test2/Main.java:5: package test1 does not exist +files/cli/test2/Main.java:6: package test1 does not exist test1.Main.main(args); ^ 1 error -files/cli/test2/Main.java:5: package test1 does not exist +files/cli/test2/Main.java:6: package test1 does not exist test1.Main.main(args); ^ 1 error diff --git a/test/files/cli/test2/Main.check.jikes5 b/test/files/cli/test2/Main.check.jikes5 new file mode 100644 index 0000000000..97943e8347 --- /dev/null +++ b/test/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/files/cli/test2/Main.check.scala_j9 b/test/files/cli/test2/Main.check.scala_j9 new file mode 100644 index 0000000000..8e05719831 --- /dev/null +++ b/test/files/cli/test2/Main.check.scala_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 <directories and zip/jar files separated by :> + set search path for application classes and resources + -D<name>=<value> + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version:<value> + 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:<libname>[=<options>] + load native agent library <libname>, e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:<pathname>[=<options>] + load native agent library by full pathname + -javaagent:<jarpath>[=<options>] + 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 + +2: 1: test 1 passed (1) +2: 1: test 2 passed (1) +2: 1: test 3 passed (1) +2: 1: test 4 passed (4) diff --git a/test/files/cli/test3/Main.check.java b/test/files/cli/test3/Main.check.java new file mode 100644 index 0000000000..de3eb7b136 --- /dev/null +++ b/test/files/cli/test3/Main.check.java @@ -0,0 +1,10 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +3: 1: test 1 passed (1) +3: 2: 1: test 1 passed (1) +3: 1: test 2 passed (1) +3: 2: 1: test 2 passed (1) +3: 1: test 3 passed (1) +3: 2: 1: test 3 passed (1) +3: 1: test 4 passed (2) +3: 2: 1: test 4 passed (2) diff --git a/test/files/cli/test3/Main.check.java5_j9 b/test/files/cli/test3/Main.check.java5_j9 new file mode 100644 index 0000000000..9e228d7649 --- /dev/null +++ b/test/files/cli/test3/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 <directories and zip/jar files separated by :> + set search path for application classes and resources + -D<name>=<value> + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version:<value> + 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:<libname>[=<options>] + load native agent library <libname>, e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:<pathname>[=<options>] + load native agent library by full pathname + -javaagent:<jarpath>[=<options>] + 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: test3.Main +The java class is not found: test3.Main +The java class is not found: test3.Main +The java class is not found: test3.Main diff --git a/test/files/cli/test3/Main.check.javac b/test/files/cli/test3/Main.check.javac index 0a2e2de023..8d235b647b 100644 --- a/test/files/cli/test3/Main.check.javac +++ b/test/files/cli/test3/Main.check.javac @@ -17,17 +17,17 @@ where possible options include: -target <release> Generate class files for specific VM version -help Print a synopsis of standard options -files/cli/test3/Main.java:5: package test1 does not exist +files/cli/test3/Main.java:6: package test1 does not exist test1.Main.main(args); ^ -files/cli/test3/Main.java:7: package test2 does not exist +files/cli/test3/Main.java:8: package test2 does not exist test2.Main.main(args); ^ 2 errors -files/cli/test3/Main.java:5: package test1 does not exist +files/cli/test3/Main.java:6: package test1 does not exist test1.Main.main(args); ^ -files/cli/test3/Main.java:7: package test2 does not exist +files/cli/test3/Main.java:8: package test2 does not exist test2.Main.main(args); ^ 2 errors diff --git a/test/files/cli/test3/Main.check.jikes5 b/test/files/cli/test3/Main.check.jikes5 new file mode 100644 index 0000000000..604333e81a --- /dev/null +++ b/test/files/cli/test3/Main.check.jikes5 @@ -0,0 +1,14 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. + +Found 2 semantic errors compiling "files/cli/test3/Main.java": + + 6. test1.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test1" was found in type "test3.Main". + + + 8. test2.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test2" was found in type "test3.Main". diff --git a/test/files/cli/test3/Main.check.scala_j9 b/test/files/cli/test3/Main.check.scala_j9 new file mode 100644 index 0000000000..5ffe43d57a --- /dev/null +++ b/test/files/cli/test3/Main.check.scala_j9 @@ -0,0 +1,40 @@ +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 <directories and zip/jar files separated by :> + set search path for application classes and resources + -D<name>=<value> + set a system property + -verbose[:class|gc|jni] + enable verbose output + -version print product version + -version:<value> + 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:<libname>[=<options>] + load native agent library <libname>, e.g. -agentlib:hprof + see also, -agentlib:jdwp=help and -agentlib:hprof=help + -agentpath:<pathname>[=<options>] + load native agent library by full pathname + -javaagent:<jarpath>[=<options>] + 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 + +3: 1: test 1 passed (1) +3: 2: 1: test 1 passed (1) +3: 1: test 2 passed (1) +3: 2: 1: test 2 passed (1) +3: 1: test 3 passed (1) +3: 2: 1: test 3 passed (1) +3: 1: test 4 passed (4) +3: 2: 1: test 4 passed (4) |