test/jdk/tools/launcher/modules/limitmods/LimitModsTest.java
author kvn
Wed, 13 Dec 2017 11:59:55 -0800
changeset 48397 ead47ddf5844
parent 47216 71c04702a3d5
child 51675 b487c1e914d0
permissions -rw-r--r--
8191788: add jdk.internal.vm.compiler to --limit-modules if -Djvmci.Compiler=graal is in the command line Summary: skip tests which use --limit-modules when Graal is used as JIT compiler. Reviewed-by: alanb, mchung, dholmes, ccheung, dnsimon
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     1
/*
45393
de4e1efc8eec 8181335: remove packageless CompilerUtils
iignatyev
parents: 42693
diff changeset
     2
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     4
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     8
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    13
 * accompanied this code).
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    14
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    18
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    21
 * questions.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    22
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    23
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    24
/**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    25
 * @test
48397
ead47ddf5844 8191788: add jdk.internal.vm.compiler to --limit-modules if -Djvmci.Compiler=graal is in the command line
kvn
parents: 47216
diff changeset
    26
 * @requires !vm.graal.enabled
45393
de4e1efc8eec 8181335: remove packageless CompilerUtils
iignatyev
parents: 42693
diff changeset
    27
 * @library /lib/testlibrary /test/lib
42693
6645de32a866 8171201: Drop java.compact$N aggregator modules
mchung
parents: 40261
diff changeset
    28
 * @modules java.desktop java.logging jdk.compiler
45393
de4e1efc8eec 8181335: remove packageless CompilerUtils
iignatyev
parents: 42693
diff changeset
    29
 * @build LimitModsTest jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.*
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    30
 * @run testng LimitModsTest
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
    31
 * @summary Basic tests for java --limit-modules
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    32
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    33
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    34
import java.nio.file.Path;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    35
import java.nio.file.Paths;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    36
45393
de4e1efc8eec 8181335: remove packageless CompilerUtils
iignatyev
parents: 42693
diff changeset
    37
import jdk.test.lib.compiler.CompilerUtils;
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    38
import static jdk.testlibrary.ProcessTools.*;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    39
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    40
import org.testng.annotations.BeforeTest;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    41
import org.testng.annotations.Test;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    42
import static org.testng.Assert.*;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    43
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    44
@Test
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    45
public class LimitModsTest {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    46
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    47
    private static final String TEST_SRC = System.getProperty("test.src");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    48
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    49
    private static final Path SRC_DIR = Paths.get(TEST_SRC, "src");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    50
    private static final Path MODS_DIR = Paths.get("mods");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    51
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    52
    // the module name / main class of the test module
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    53
    private static final String TEST_MODULE = "test";
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    54
    private static final String MAIN_CLASS = "jdk.test.UseAWT";
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    55
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    56
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    57
    @BeforeTest
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    58
    public void compileTestModule() throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    59
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    60
        // javac -d mods/$TESTMODULE src/$TESTMODULE/**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    61
        boolean compiled
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    62
            = CompilerUtils.compile(SRC_DIR.resolve(TEST_MODULE),
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    63
                MODS_DIR.resolve(TEST_MODULE));
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    64
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    65
        assertTrue(compiled, "test module did not compile");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    66
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    67
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    68
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    69
    /**
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
    70
     * Basic test of --limit-modules to limit which platform modules are observable.
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    71
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    72
    public void testLimitingPlatformModules() throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    73
        int exitValue;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    74
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
    75
        // java --limit-modules java.base --list-modules
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
    76
        exitValue = executeTestJava("--limit-modules", "java.base", "--list-modules")
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    77
            .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    78
            .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    79
            .shouldContain("java.base")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    80
            .shouldNotContain("java.logging")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    81
            .shouldNotContain("java.xml")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    82
            .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    83
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    84
        assertTrue(exitValue == 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    85
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    86
42693
6645de32a866 8171201: Drop java.compact$N aggregator modules
mchung
parents: 40261
diff changeset
    87
        // java --limit-modules java.logging --list-modules
6645de32a866 8171201: Drop java.compact$N aggregator modules
mchung
parents: 40261
diff changeset
    88
        exitValue = executeTestJava("--limit-modules", "java.logging", "--list-modules")
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    89
            .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    90
            .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    91
            .shouldContain("java.base")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    92
            .shouldContain("java.logging")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    93
            .shouldNotContain("java.xml")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    94
            .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    95
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    96
        assertTrue(exitValue == 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    97
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    98
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    99
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   100
    /**
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   101
     * Test --limit-modules with --add-modules
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   102
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   103
    public void testWithAddMods() throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   104
        int exitValue;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   105
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   106
        // java --limit-modules java.base --add-modules java.logging --list-modules
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   107
        exitValue = executeTestJava("--limit-modules", "java.base",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   108
                                    "--add-modules", "java.logging",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   109
                                    "--list-modules")
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   110
            .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   111
            .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   112
            .shouldContain("java.base")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   113
            .shouldContain("java.logging")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   114
            .shouldNotContain("java.xml")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   115
            .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   116
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   117
        assertTrue(exitValue == 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   118
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   119
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   120
        // java --limit-modules java.base --add-modules java.sql --list-modules
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   121
        // This should fail because java.sql has dependences beyond java.base
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   122
        exitValue = executeTestJava("--limit-modules", "java.base",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   123
                                    "--add-modules", "java.sql",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   124
                                    "--list-modules")
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   125
            .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   126
            .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   127
            .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   128
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   129
        assertTrue(exitValue != 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   130
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   131
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   132
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   133
    /**
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   134
     * Run class path application with --limit-modules
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   135
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   136
    public void testUnnamedModule() throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   137
        String classpath = MODS_DIR.resolve(TEST_MODULE).toString();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   138
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   139
        // java --limit-modules java.base -cp mods/$TESTMODULE ...
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   140
        int exitValue1
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   141
            = executeTestJava("--limit-modules", "java.base",
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   142
                              "-cp", classpath,
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   143
                              MAIN_CLASS)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   144
                .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   145
                .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   146
                .shouldContain("NoClassDefFoundError")
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   147
                .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   148
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   149
        assertTrue(exitValue1 != 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   150
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   151
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   152
        // java --limit-modules java.base -cp mods/$TESTMODULE ...
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   153
        int exitValue2
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   154
            = executeTestJava("--limit-modules", "java.desktop",
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   155
                              "-cp", classpath,
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   156
                             MAIN_CLASS)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   157
                .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   158
                .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   159
                .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   160
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   161
        assertTrue(exitValue2 == 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   162
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   163
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   164
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   165
    /**
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   166
     * Run named module with --limit-modules
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   167
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   168
    public void testNamedModule() throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   169
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   170
        String modulepath = MODS_DIR.toString();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   171
        String mid = TEST_MODULE + "/" + MAIN_CLASS;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   172
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   173
        // java --limit-modules java.base --module-path mods -m $TESTMODULE/$MAINCLASS
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   174
        int exitValue = executeTestJava("--limit-modules", "java.base",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   175
                                        "--module-path", modulepath,
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   176
                                        "-m", mid)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   177
                .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   178
                .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   179
                .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   180
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   181
        assertTrue(exitValue != 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   182
40261
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   183
        // java --limit-modules java.desktop --module-path mods -m $TESTMODULE/$MAINCLASS
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   184
        exitValue = executeTestJava("--limit-modules", "java.desktop",
86a49ba76f52 8136930: Simplify use of module-system options by custom launchers
mchung
parents: 37607
diff changeset
   185
                                    "--module-path", modulepath,
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   186
                                    "-m", mid)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   187
                .outputTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   188
                .errorTo(System.out)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   189
                .getExitValue();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   190
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   191
        assertTrue(exitValue == 0);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   192
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   193
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   194
}