--- a/langtools/test/jdk/jshell/JdiBadOptionLaunchExecutionControlTest.java Tue Apr 11 14:03:16 2017 +0100
+++ b/langtools/test/jdk/jshell/JdiBadOptionLaunchExecutionControlTest.java Tue Apr 11 17:26:52 2017 -0700
@@ -29,6 +29,8 @@
* @run testng JdiBadOptionLaunchExecutionControlTest
*/
+import java.util.logging.Level;
+import java.util.logging.Logger;
import org.testng.annotations.Test;
import jdk.jshell.JShell;
import static org.testng.Assert.assertTrue;
@@ -42,6 +44,8 @@
public void badOptionLaunchTest() {
try {
+ // turn on logging of launch failures
+ Logger.getLogger("jdk.jshell.execution").setLevel(Level.ALL);
JShell.builder()
.executionEngine("jdi:launch(true)")
.remoteVMOptions("-BadBadOption")