149 "(exitStatus==" + exitStatus + ")"); 150 } 151 } catch ( InterruptedException e ) { 152 throw new RuntimeException("Test failed - process interrupted"); 153 } 154 System.out.println("Completed: " + cmdLine); 155 } 156 157 /* 158 * Execute a process with an -agentpath or -agentlib command option 159 * plus any set of other java options. 160 */ 161 public void runit(String class_name, String vm_options[]) 162 { 163 String jre_home = System.getProperty("java.home"); 164 String sdk_home = (jre_home.endsWith("jre") ? 165 (jre_home + File.separator + "..") : 166 jre_home ); 167 String cdir = System.getProperty("test.classes", "."); 168 String os_arch = System.getProperty("os.arch"); 169 boolean d64 = os_arch.equals("sparcv9") || 170 os_arch.equals("amd64"); 171 String isa_dir = d64?(File.separator+os_arch):""; 172 String java = jre_home 173 + File.separator + "bin" + isa_dir 174 + File.separator + "java"; 175 String jhat = sdk_home + File.separator + "bin" 176 + File.separator + "jhat"; 177 /* Array of strings to be passed in for exec: 178 * 1. java 179 * 2. -Dtest.classes=. 180 * 3. -d64 (optional) 181 * 4. -Xcheck:jni (Just because it finds bugs) 182 * 5. -Xverify:all (Make sure verification is on full blast) 183 * 6. -agent 184 * vm_options 185 * 7+i. classname 186 */ 187 int nvm_options = 0; 188 if ( vm_options != null ) nvm_options = vm_options.length; 189 String cmd[] = new String[1 + (d64?1:0) + 7 + nvm_options]; 190 int i,j; | 149 "(exitStatus==" + exitStatus + ")"); 150 } 151 } catch ( InterruptedException e ) { 152 throw new RuntimeException("Test failed - process interrupted"); 153 } 154 System.out.println("Completed: " + cmdLine); 155 } 156 157 /* 158 * Execute a process with an -agentpath or -agentlib command option 159 * plus any set of other java options. 160 */ 161 public void runit(String class_name, String vm_options[]) 162 { 163 String jre_home = System.getProperty("java.home"); 164 String sdk_home = (jre_home.endsWith("jre") ? 165 (jre_home + File.separator + "..") : 166 jre_home ); 167 String cdir = System.getProperty("test.classes", "."); 168 String os_arch = System.getProperty("os.arch"); 169 String os_name = System.getProperty("os.name"); 170 boolean d64 = os_name.equals("SunOS") && ( 171 os_arch.equals("sparcv9") || 172 os_arch.equals("amd64")); 173 String isa_dir = d64?(File.separator+os_arch):""; 174 String java = jre_home 175 + File.separator + "bin" + isa_dir 176 + File.separator + "java"; 177 String jhat = sdk_home + File.separator + "bin" 178 + File.separator + "jhat"; 179 /* Array of strings to be passed in for exec: 180 * 1. java 181 * 2. -Dtest.classes=. 182 * 3. -d64 (optional) 183 * 4. -Xcheck:jni (Just because it finds bugs) 184 * 5. -Xverify:all (Make sure verification is on full blast) 185 * 6. -agent 186 * vm_options 187 * 7+i. classname 188 */ 189 int nvm_options = 0; 190 if ( vm_options != null ) nvm_options = vm_options.length; 191 String cmd[] = new String[1 + (d64?1:0) + 7 + nvm_options]; 192 int i,j; |