< prev index next >

test/serviceability/dcmd/compiler/CompilerDirectivesDCMDTest.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CompilerDirectivesDCMDTest
  26  * @bug 8137167
  27  * @library /testlibrary
  28  * @modules java.base/jdk.internal.misc
  29  *          java.compiler
  30  *          java.management
  31  * @build jdk.test.lib.*
  32  * @build jdk.test.lib.dcmd.*
  33  * @run main ClassFileInstaller jdk.test.lib.Platform
  34  * @run testng/othervm CompilerDirectivesDCMDTest
  35  * @summary Test of diagnostic command
  36  */
  37 
  38 import jdk.test.lib.OutputAnalyzer;
  39 import jdk.test.lib.dcmd.CommandExecutor;
  40 import jdk.test.lib.dcmd.JMXExecutor;
  41 import jdk.test.lib.Platform;
  42 import org.testng.annotations.Test;
  43 import org.testng.Assert;
  44 
  45 import java.io.BufferedReader;
  46 import java.io.File;
  47 import java.io.StringReader;
  48 
  49 public class CompilerDirectivesDCMDTest {
  50 
  51     public static String filename;
  52 
  53     public void run(CommandExecutor executor) {
  54 
  55         if (Platform.isServer()) {
  56             filename = System.getProperty("test.src", ".") + File.separator + "control2.txt";
  57         } else {
  58             filename = System.getProperty("test.src", ".") + File.separator + "control1.txt";




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CompilerDirectivesDCMDTest
  26  * @bug 8137167
  27  * @library /test/lib
  28  * @modules java.base/jdk.internal.misc
  29  *          java.compiler
  30  *          java.management



  31  * @run testng/othervm CompilerDirectivesDCMDTest
  32  * @summary Test of diagnostic command
  33  */
  34 
  35 import jdk.test.lib.process.OutputAnalyzer;
  36 import jdk.test.lib.dcmd.CommandExecutor;
  37 import jdk.test.lib.dcmd.JMXExecutor;
  38 import jdk.test.lib.Platform;
  39 import org.testng.annotations.Test;
  40 import org.testng.Assert;
  41 
  42 import java.io.BufferedReader;
  43 import java.io.File;
  44 import java.io.StringReader;
  45 
  46 public class CompilerDirectivesDCMDTest {
  47 
  48     public static String filename;
  49 
  50     public void run(CommandExecutor executor) {
  51 
  52         if (Platform.isServer()) {
  53             filename = System.getProperty("test.src", ".") + File.separator + "control2.txt";
  54         } else {
  55             filename = System.getProperty("test.src", ".") + File.separator + "control1.txt";


< prev index next >