MinstTest.java revision 0
5693N/A/*
5693N/A * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
5693N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5693N/A *
5693N/A * This code is free software; you can redistribute it and/or modify it
5693N/A * under the terms of the GNU General Public License version 2 only, as
5693N/A * published by the Free Software Foundation.
5693N/A *
5693N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5693N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5693N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5693N/A * version 2 for more details (a copy is included in the LICENSE file that
5693N/A * accompanied this code).
5693N/A *
5693N/A * You should have received a copy of the GNU General Public License version
5693N/A * 2 along with this work; if not, write to the Free Software Foundation,
5693N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5693N/A *
5693N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
5693N/A * CA 95054 USA or visit www.sun.com if you need additional information or
5693N/A * have any questions.
5693N/A */
5693N/A
5693N/A
5693N/A/* @test
6350N/A * @bug 6377205
5693N/A * @summary Test jvmti demo minst
5693N/A *
5693N/A * @compile ../DemoRun.java
5693N/A * @compile MinstExample.java
5693N/A * @build MinstTest
5693N/A * @run main MinstTest MinstExample
5693N/A */
5693N/A
5693N/Apublic class MinstTest {
5693N/A
5693N/A public static void main(String args[]) throws Exception {
5693N/A DemoRun demo;
5693N/A
5693N/A /* Run demo that uses JVMTI minst agent (no options) */
5693N/A demo = new DemoRun("minst", "exclude=java/*,exclude=javax/*,exclude=com/*,exclude=sun/*" /* options to minst */ );
5693N/A demo.runit(args[0]);
5693N/A
5693N/A /* Make sure patterns in output look ok */
5693N/A if (demo.output_contains("ERROR")) {
5693N/A throw new RuntimeException("Test failed - ERROR seen in oputput");
5693N/A }
5693N/A
5693N/A /* Must be a pass. */
5693N/A System.out.println("Test passed - cleanly terminated");
5693N/A }
5693N/A}
5693N/A