< prev index next >

test/serviceability/sa/sadebugd/SADebugDTest.java

Print this page
rev 12341 : 8078450: Implement consistent process for quarantine of tests


  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
  26  * @summary Checks that the jshdb debugd utility sucessfully starts
  27  *          and tries to attach to a running process
  28  * @modules java.base/jdk.internal.misc
  29  * @library /test/lib
  30  *
  31  * @ignore 8163805
  32  * @run main/othervm SADebugDTest
  33  */
  34 import java.io.File;
  35 import java.util.concurrent.CountDownLatch;
  36 import java.io.InputStreamReader;
  37 import java.io.BufferedReader;
  38 import java.io.Reader;
  39 import java.util.concurrent.TimeUnit;
  40 import java.util.function.Predicate;
  41 import static jdk.test.lib.Asserts.assertTrue;
  42 import static jdk.test.lib.Platform.shouldSAAttach;
  43 import static jdk.test.lib.process.ProcessTools.startProcess;
  44 
  45 public class SADebugDTest {
  46 
  47     private static final String GOLDEN = "Attaching to process ID %d and starting RMI services, please wait...";
  48 
  49     private static final String JAVA_HOME = (System.getProperty("test.jdk") != null)
  50             ? System.getProperty("test.jdk") : System.getProperty("java.home");
  51 




  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
  26  * @summary Checks that the jshdb debugd utility sucessfully starts
  27  *          and tries to attach to a running process
  28  * @modules java.base/jdk.internal.misc
  29  * @library /test/lib
  30  *

  31  * @run main/othervm SADebugDTest
  32  */
  33 import java.io.File;
  34 import java.util.concurrent.CountDownLatch;
  35 import java.io.InputStreamReader;
  36 import java.io.BufferedReader;
  37 import java.io.Reader;
  38 import java.util.concurrent.TimeUnit;
  39 import java.util.function.Predicate;
  40 import static jdk.test.lib.Asserts.assertTrue;
  41 import static jdk.test.lib.Platform.shouldSAAttach;
  42 import static jdk.test.lib.process.ProcessTools.startProcess;
  43 
  44 public class SADebugDTest {
  45 
  46     private static final String GOLDEN = "Attaching to process ID %d and starting RMI services, please wait...";
  47 
  48     private static final String JAVA_HOME = (System.getProperty("test.jdk") != null)
  49             ? System.getProperty("test.jdk") : System.getProperty("java.home");
  50 


< prev index next >