hotspot/test/runtime/modules/ModuleStress/ModuleStressGC.java
changeset 44993 f61bcd80ec1f
parent 40631 ed82623d7831
equal deleted inserted replaced
44741:c5de7263722b 44993:f61bcd80ec1f
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. 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.
    71         // Sanity check that the test, jdk.test/test/MainGC.java,
    71         // Sanity check that the test, jdk.test/test/MainGC.java,
    72         // correctly walks module jdk.test's reads list and package
    72         // correctly walks module jdk.test's reads list and package
    73         // test's, defined to module jdk.translet, export list at
    73         // test's, defined to module jdk.translet, export list at
    74         // GC safepoints.
    74         // GC safepoints.
    75         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
    75         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
    76             "-Xlog:modules=trace",
    76             "-Xlog:module=trace",
    77             "-p", MODS_DIR.toString(),
    77             "-p", MODS_DIR.toString(),
    78             "-m", "jdk.test/test.MainGC");
    78             "-m", "jdk.test/test.MainGC");
    79         OutputAnalyzer oa = new OutputAnalyzer(pb.start());
    79         OutputAnalyzer oa = new OutputAnalyzer(pb.start());
    80         oa.shouldContain("package test defined in module jdk.test, exports list being walked")
    80         oa.shouldContain("package test defined in module jdk.test, exports list being walked")
    81           .shouldContain("module jdk.test reads list being walked")
    81           .shouldContain("module jdk.test reads list being walked")