< prev index next >

test/jdk/java/lang/ProcessBuilder/JspawnhelperProtocol.java

Print this page

 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 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 /*
 26  * @test
 27  * @bug 8307990
 28  * @requires (os.family == "linux") | (os.family == "aix")
 29  * @requires vm.debug

 30  * @library /test/lib
 31  * @run main/othervm/timeout=300 JspawnhelperProtocol
 32  */
 33 
 34 import java.io.BufferedReader;
 35 import java.io.IOException;
 36 import java.nio.file.Path;
 37 import java.util.Optional;
 38 import java.util.concurrent.TimeUnit;
 39 import java.util.concurrent.TimeoutException;
 40 
 41 import jdk.test.lib.process.ProcessTools;
 42 
 43 public class JspawnhelperProtocol {
 44     // Timout in seconds
 45     private static final int TIMEOUT = 60;
 46     // Base error code to communicate various error states from the parent process to the top-level test
 47     private static final int ERROR = 10;
 48     private static final String[] CMD = { "pwd" };
 49     private static final String ENV_KEY = "JTREG_JSPAWNHELPER_PROTOCOL_TEST";

 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 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 /*
 26  * @test
 27  * @bug 8307990
 28  * @requires (os.family == "linux") | (os.family == "aix")
 29  * @requires vm.debug
 30  * @requires vm.flagless
 31  * @library /test/lib
 32  * @run main/othervm/timeout=300 JspawnhelperProtocol
 33  */
 34 
 35 import java.io.BufferedReader;
 36 import java.io.IOException;
 37 import java.nio.file.Path;
 38 import java.util.Optional;
 39 import java.util.concurrent.TimeUnit;
 40 import java.util.concurrent.TimeoutException;
 41 
 42 import jdk.test.lib.process.ProcessTools;
 43 
 44 public class JspawnhelperProtocol {
 45     // Timout in seconds
 46     private static final int TIMEOUT = 60;
 47     // Base error code to communicate various error states from the parent process to the top-level test
 48     private static final int ERROR = 10;
 49     private static final String[] CMD = { "pwd" };
 50     private static final String ENV_KEY = "JTREG_JSPAWNHELPER_PROTOCOL_TEST";
< prev index next >