jdk/test/sun/rmi/runtime/Log/6409194/NoConsoleOutput.java
changeset 15005 796ffc400e9e
parent 14919 cd751b98ef69
child 30820 0d4717a011d3
equal deleted inserted replaced
15004:cf5d2d5094cc 15005:796ffc400e9e
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    63         // We instantiate a JavaVM that should not produce any console output
    63         // We instantiate a JavaVM that should not produce any console output
    64         // (neither on standard output, nor on standard err streams).
    64         // (neither on standard output, nor on standard err streams).
    65         JavaVM vm = new JavaVM(DoRMIStuff.class.getName(),
    65         JavaVM vm = new JavaVM(DoRMIStuff.class.getName(),
    66             "-Djava.util.logging.config.file=" + loggingPropertiesFile,
    66             "-Djava.util.logging.config.file=" + loggingPropertiesFile,
    67                                "", out, err);
    67                                "", out, err);
    68         vm.start();
    68         vm.execute();
    69         vm.getVM().waitFor();
       
    70 
    69 
    71         /*
    70         /*
    72          * Verify that the subprocess had no System.out or System.err
    71          * Verify that the subprocess had no System.out or System.err
    73          * output.
    72          * output.
    74          */
    73          */