10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test OptionTest
26 * @bug 5095072
27 * @summary Test for misc jdwp options, just that the option is parsed
28 * @author Kelly O'Hair (copied from Tim Bell's NoLaunchOptionTest)
29 *
30 * @modules jdk.jdi
31 * @run compile -g OptionTest.java
32 * @run compile -g HelloWorld.java
33 * @run compile -g VMConnection.java
34 * @run driver OptionTest
35 */
36
37 import java.net.ServerSocket;
38 import java.util.regex.Matcher;
39 import java.util.regex.Pattern;
40
41 public class OptionTest extends Object {
42 private static final Pattern TRANSPORT_ERROR_PTRN = Pattern.compile("^ERROR: transport error .+$", Pattern.MULTILINE);
43 private int subprocessStatus;
44 private static final String CR = System.getProperty("line.separator");
45 private static final int BUFFERSIZE = 4096;
46 public static final int RETSTAT = 0;
47 public static final int STDOUT = 1;
48 public static final int STDERR = 2;
49
50 /**
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test OptionTest
26 * @bug 5095072
27 * @summary Test for misc jdwp options, just that the option is parsed
28 * @author Kelly O'Hair (copied from Tim Bell's NoLaunchOptionTest)
29 *
30 * @run compile -g OptionTest.java
31 * @run compile -g HelloWorld.java
32 * @run compile -g VMConnection.java
33 * @run driver OptionTest
34 */
35
36 import java.net.ServerSocket;
37 import java.util.regex.Matcher;
38 import java.util.regex.Pattern;
39
40 public class OptionTest extends Object {
41 private static final Pattern TRANSPORT_ERROR_PTRN = Pattern.compile("^ERROR: transport error .+$", Pattern.MULTILINE);
42 private int subprocessStatus;
43 private static final String CR = System.getProperty("line.separator");
44 private static final int BUFFERSIZE = 4096;
45 public static final int RETSTAT = 0;
46 public static final int STDOUT = 1;
47 public static final int STDERR = 2;
48
49 /**
|