test/sun/rmi/runtime/Log/6409194/NoConsoleOutput.java
Print this page
@@ -58,13 +58,16 @@
String loggingPropertiesFile =
System.getProperty("test.src", ".") +
File.separatorChar + "logging.properties";
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayOutputStream err = new ByteArrayOutputStream();
+
+ // We instantiate a JavaVM that should not produce any console output
+ // (neither on standard output, nor on standard err streams).
JavaVM vm = new JavaVM(DoRMIStuff.class.getName(),
"-Djava.util.logging.config.file=" + loggingPropertiesFile,
- "", out, err);
+ "", out, err, false);
vm.start();
vm.getVM().waitFor();
/*
* Verify that the subprocess had no System.out or System.err