48 public static void main(String args[]) { 49 new TestVMNoCompLevel().runTest(false); 50 } 51 52 @Override 53 public void testAction() { 54 try { 55 Path replayFilePath = Paths.get(REPLAY_FILE_NAME); 56 List<String> replayContent = Files.readAllLines(replayFilePath); 57 for (int i = 0; i < replayContent.size(); i++) { 58 String line = replayContent.get(i); 59 if (line.startsWith("compile ")) { 60 replayContent.set(i, line.substring(0, line.lastIndexOf(" "))); 61 } 62 } 63 Files.write(replayFilePath, replayContent, StandardOpenOption.TRUNCATE_EXISTING); 64 } catch (IOException ioe) { 65 throw new Error("Failed to read/write replay data: " + ioe, ioe); 66 } 67 if (CLIENT_VM_AVAILABLE) { 68 negativeTest(CLIENT_VM_OPTION); 69 } 70 if (SERVER_VM_AVAILABLE) { 71 positiveTest(TIERED_DISABLED_VM_OPTION, SERVER_VM_OPTION); 72 positiveTest(TIERED_ENABLED_VM_OPTION, SERVER_VM_OPTION); 73 } 74 } 75 } 76 | 48 public static void main(String args[]) { 49 new TestVMNoCompLevel().runTest(false); 50 } 51 52 @Override 53 public void testAction() { 54 try { 55 Path replayFilePath = Paths.get(REPLAY_FILE_NAME); 56 List<String> replayContent = Files.readAllLines(replayFilePath); 57 for (int i = 0; i < replayContent.size(); i++) { 58 String line = replayContent.get(i); 59 if (line.startsWith("compile ")) { 60 replayContent.set(i, line.substring(0, line.lastIndexOf(" "))); 61 } 62 } 63 Files.write(replayFilePath, replayContent, StandardOpenOption.TRUNCATE_EXISTING); 64 } catch (IOException ioe) { 65 throw new Error("Failed to read/write replay data: " + ioe, ioe); 66 } 67 if (CLIENT_VM_AVAILABLE) { 68 if (SERVER_VM_AVAILABLE) { 69 negativeTest(CLIENT_VM_OPTION); 70 } else { 71 positiveTest(CLIENT_VM_OPTION); 72 } 73 } 74 if (SERVER_VM_AVAILABLE) { 75 positiveTest(TIERED_DISABLED_VM_OPTION, SERVER_VM_OPTION); 76 positiveTest(TIERED_ENABLED_VM_OPTION, SERVER_VM_OPTION); 77 } 78 } 79 } 80 |