jdk/test/tools/launcher/Arrrghs.java
changeset 10126 a375b8714147
parent 9035 1255eb81cc2f
child 11687 f13cadbb0bb5
equal deleted inserted replaced
10125:c70d99150c40 10126:a375b8714147
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 5030233 6214916 6356475 6571029 6684582 6742159 4459600 6758881 6753938
    26  * @bug 5030233 6214916 6356475 6571029 6684582 6742159 4459600 6758881 6753938
    27  *      6894719 6968053
    27  *      6894719 6968053 7067922
    28  * @summary Argument parsing validation.
    28  * @summary Argument parsing validation.
    29  * @compile -XDignore.symbol.file Arrrghs.java TestHelper.java
    29  * @compile -XDignore.symbol.file Arrrghs.java TestHelper.java
    30  * @run main Arrrghs
    30  * @run main Arrrghs
    31  */
    31  */
    32 
    32 
   360         tr = TestHelper.doExec(TestHelper.javaCmd,
   360         tr = TestHelper.doExec(TestHelper.javaCmd,
   361                 "-jre-restrict-search", "-version");
   361                 "-jre-restrict-search", "-version");
   362         tr.checkPositive();
   362         tr.checkPositive();
   363         System.out.println(tr);
   363         System.out.println(tr);
   364     }
   364     }
       
   365 
       
   366     static void test7067922() {
       
   367         // a missing manifest entry 7067922
       
   368         TestHelper.TestResult tr = null;
       
   369         TestHelper.createJar("cvf", "missingmainentry.jar", ".");
       
   370         tr = TestHelper.doExec(TestHelper.javaCmd, "-jar", "missingmainentry.jar");
       
   371         tr.contains("no main manifest attribute");
       
   372         System.out.println(tr);
       
   373     }
       
   374 
   365     /**
   375     /**
   366      * @param args the command line arguments
   376      * @param args the command line arguments
   367      * @throws java.io.FileNotFoundException
   377      * @throws java.io.FileNotFoundException
   368      */
   378      */
   369     public static void main(String[] args) throws FileNotFoundException {
   379     public static void main(String[] args) throws FileNotFoundException {
   372         }
   382         }
   373         quoteParsingTests();
   383         quoteParsingTests();
   374         runBasicErrorMessageTests();
   384         runBasicErrorMessageTests();
   375         runMainMethodTests();
   385         runMainMethodTests();
   376         test6894719();
   386         test6894719();
       
   387         test7067922();
   377         runDiagOptionTests();
   388         runDiagOptionTests();
   378         if (TestHelper.testExitValue > 0) {
   389         if (TestHelper.testExitValue > 0) {
   379             System.out.println("Total of " + TestHelper.testExitValue + " failed");
   390             System.out.println("Total of " + TestHelper.testExitValue + " failed");
   380             System.exit(1);
   391             System.exit(1);
   381         } else {
   392         } else {