8072906: sun/management/jmxremote/bootstrap/CustomLauncherTest.java failing on embedded platform
Reviewed-by: sspitsyn, dholmes
--- 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]);