test/tools/launcher/Test7029048.java

Print this page




 191             run(env, v.value + 1, "Case 2: " + desc);
 192 
 193             if (isSolaris) {
 194                 /*
 195                  * Case 3: set the appropriate LLP_XX flag,
 196                  * java64 -d64, LLP_64 is relevant, LLP_32 is ignored
 197                  */
 198                 env.clear();
 199                 env.put(LD_LIBRARY_PATH_64, dstServerDir.getAbsolutePath());
 200                 run(env, v.value + 1, "Case 3: " + desc);
 201             }
 202         }
 203         return;
 204     }
 205 
 206     public static void main(String... args) throws Exception {
 207         if (TestHelper.isWindows || TestHelper.isMacOSX) {
 208             System.out.println("Note: applicable on neither Windows nor MacOSX");
 209             return;
 210         }




 211         // create our test jar first
 212         ExecutionEnvironment.createTestJar();
 213 
 214         // run the tests
 215         test7029048();
 216         if (errors > 0) {
 217             throw new Exception("Test7029048: FAIL: with "
 218                     + errors + " errors and passes " + passes);
 219         } else if (isSolaris && passes < 9) {
 220             throw new Exception("Test7029048: FAIL: " +
 221                     "all tests did not run, expected " + 9 + " got " + passes);
 222         } else if (isLinux && passes < 6) {
 223              throw new Exception("Test7029048: FAIL: " +
 224                     "all tests did not run, expected " + 6 + " got " + passes);
 225         } else {
 226             System.out.println("Test7029048: PASS " + passes);
 227         }
 228     }
 229 }


 191             run(env, v.value + 1, "Case 2: " + desc);
 192 
 193             if (isSolaris) {
 194                 /*
 195                  * Case 3: set the appropriate LLP_XX flag,
 196                  * java64 -d64, LLP_64 is relevant, LLP_32 is ignored
 197                  */
 198                 env.clear();
 199                 env.put(LD_LIBRARY_PATH_64, dstServerDir.getAbsolutePath());
 200                 run(env, v.value + 1, "Case 3: " + desc);
 201             }
 202         }
 203         return;
 204     }
 205 
 206     public static void main(String... args) throws Exception {
 207         if (TestHelper.isWindows || TestHelper.isMacOSX) {
 208             System.out.println("Note: applicable on neither Windows nor MacOSX");
 209             return;
 210         }
 211         if (!TestHelper.haveServerVM) {
 212             System.out.println("Note: test relies on server vm, not found, exiting");
 213             return;
 214         }
 215         // create our test jar first
 216         ExecutionEnvironment.createTestJar();
 217 
 218         // run the tests
 219         test7029048();
 220         if (errors > 0) {
 221             throw new Exception("Test7029048: FAIL: with "
 222                     + errors + " errors and passes " + passes);
 223         } else if (isSolaris && passes < 9) {
 224             throw new Exception("Test7029048: FAIL: " +
 225                     "all tests did not run, expected " + 9 + " got " + passes);
 226         } else if (isLinux && passes < 6) {
 227              throw new Exception("Test7029048: FAIL: " +
 228                     "all tests did not run, expected " + 6 + " got " + passes);
 229         } else {
 230             System.out.println("Test7029048: PASS " + passes);
 231         }
 232     }
 233 }