jdk/test/demo/jvmti/minst/MinstTest.java
changeset 4808 37f605425f74
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
4807:2521b7dcf505 4808:37f605425f74
     1 /*
     1 /*
     2  * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2006-2010 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    41         demo = new DemoRun("minst", "exclude=java/*,exclude=javax/*,exclude=com/*,exclude=sun/*" /* options to minst */ );
    41         demo = new DemoRun("minst", "exclude=java/*,exclude=javax/*,exclude=com/*,exclude=sun/*" /* options to minst */ );
    42         demo.runit(args[0]);
    42         demo.runit(args[0]);
    43 
    43 
    44         /* Make sure patterns in output look ok */
    44         /* Make sure patterns in output look ok */
    45         if (demo.output_contains("ERROR")) {
    45         if (demo.output_contains("ERROR")) {
    46             throw new RuntimeException("Test failed - ERROR seen in oputput");
    46             throw new RuntimeException("Test failed - ERROR seen in output");
    47         }
    47         }
    48 
    48 
    49         /* Must be a pass. */
    49         /* Must be a pass. */
    50         System.out.println("Test passed - cleanly terminated");
    50         System.out.println("Test passed - cleanly terminated");
    51     }
    51     }