< prev index next >

test/com/sun/jdi/RunToExit.java

Print this page
rev 11832 : 8078896: Add @modules as needed to the jdk_svc tests
Reviewed-by: alanb, mchung
   1 /*
   2  * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   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 /* @test
  25  * @bug 4997445
  26  * @summary Test that with server=y, when VM runs to System.exit() no error happens
  27  * @library /lib/testlibrary


  28  * @build jdk.testlibrary.* VMConnection RunToExit Exit0
  29  * @run driver RunToExit
  30  */
  31 import java.net.ServerSocket;
  32 import com.sun.jdi.Bootstrap;
  33 import com.sun.jdi.VirtualMachine;
  34 import com.sun.jdi.event.*;
  35 import com.sun.jdi.connect.Connector;
  36 import com.sun.jdi.connect.AttachingConnector;
  37 import java.net.ConnectException;
  38 import java.util.Map;
  39 import java.util.List;
  40 import java.util.Iterator;
  41 import java.util.concurrent.TimeUnit;
  42 import java.util.stream.Collectors;
  43 import jdk.testlibrary.ProcessTools;
  44 
  45 public class RunToExit {
  46 
  47     /* Increment this when ERROR: seen */


   1 /*
   2  * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   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 /* @test
  25  * @bug 4997445
  26  * @summary Test that with server=y, when VM runs to System.exit() no error happens
  27  * @library /lib/testlibrary
  28  * @modules java.management
  29  *          jdk.jdi
  30  * @build jdk.testlibrary.* VMConnection RunToExit Exit0
  31  * @run driver RunToExit
  32  */
  33 import java.net.ServerSocket;
  34 import com.sun.jdi.Bootstrap;
  35 import com.sun.jdi.VirtualMachine;
  36 import com.sun.jdi.event.*;
  37 import com.sun.jdi.connect.Connector;
  38 import com.sun.jdi.connect.AttachingConnector;
  39 import java.net.ConnectException;
  40 import java.util.Map;
  41 import java.util.List;
  42 import java.util.Iterator;
  43 import java.util.concurrent.TimeUnit;
  44 import java.util.stream.Collectors;
  45 import jdk.testlibrary.ProcessTools;
  46 
  47 public class RunToExit {
  48 
  49     /* Increment this when ERROR: seen */


< prev index next >