8072906: sun/management/jmxremote/bootstrap/CustomLauncherTest.java failing on embedded platform
authorjbachorik
Thu, 30 Apr 2015 16:44:39 +0200
changeset 30665 de1d43259890
parent 30664 337397328b72
child 30666 ed4a9b27a968
8072906: sun/management/jmxremote/bootstrap/CustomLauncherTest.java failing on embedded platform Reviewed-by: sspitsyn, dholmes
jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java
--- a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Sat May 02 18:40:59 2015 -0700
+++ b/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Thu Apr 30 16:44:39 2015 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -109,6 +109,8 @@
         try {
             String[] launcher = getLauncher();
 
+            if (launcher == null) return; // launcher not available for the tested platform; skip
+
             System.out.println("Starting custom launcher:");
             System.out.println("=========================");
             System.out.println("  launcher  : " + launcher[0]);