hotspot/test/compiler/runtime/cr8015436/Driver8015436.java
author rfield
Mon, 06 Mar 2017 15:44:37 -0800
changeset 44066 336ca6c49e10
parent 40375 492761e17d4b
permissions -rw-r--r--
8176241: JShell tests: on full builds CompletionSuggestionTest.testImportStart() fails Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
40375
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     1
/*
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     4
 *
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     7
 * published by the Free Software Foundation.
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     8
 *
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    13
 * accompanied this code).
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    14
 *
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    18
 *
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    21
 * questions.
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    22
 */
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    23
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    24
package compiler.runtime.cr8015436;
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    25
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    26
import jdk.test.lib.process.OutputAnalyzer;
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    27
import jdk.test.lib.process.ProcessTools;
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    28
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    29
public class Driver8015436 {
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    30
    public static void main(String args[]) {
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    31
        OutputAnalyzer oa;
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    32
        try {
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    33
            oa = ProcessTools.executeProcess(ProcessTools.createJavaProcessBuilder(
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    34
                    /* add test vm options */ true, Test8015436.class.getName()));
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    35
        } catch (Exception ex) {
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    36
            throw new Error("TESTBUG: exception while running child process: " + ex, ex);
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    37
        }
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    38
        oa.shouldHaveExitValue(0);
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    39
        oa.shouldContain(Test8015436.SOME_MTD_INVOKED);
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    40
        oa.shouldContain(Test8015436.DEFAULT_MTD_INVOKED_DIRECTLY);
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    41
        oa.shouldContain(Test8015436.DEFAULT_MTD_INVOKED_MH);
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    42
    }
492761e17d4b 8160299: Test8015436 doesn't check which method was executed
dpochepk
parents:
diff changeset
    43
}