test/java/util/logging/ParentLoggersTest.java

Print this page
rev 4567 : 7092627: use agentvm mode instead of samevm in regtests
Reviewed-by: nobody
   1 /*
   2  * @test
   3  * @bug     6498300
   4  *
   5  * @summary regression: parent loggers are not properly registered
   6  * @author  ss45998
   7  *
   8  * @build ParentLoggersTest
   9  * @run main ParentLoggersTest
  10  */
  11 
  12 /*
  13  * There are several original tests which were failed when
  14  * this regression was introduced. This is an extra test
  15  * to ensure that the parent loggers with the defined
  16  * .level property are implicitly registered.
  17  */
  18 
  19 import java.util.*;
  20 import java.io.*;
  21 import java.util.logging.*;
  22 
  23 public class ParentLoggersTest {
  24     static final LogManager  logMgr     = LogManager.getLogManager();
  25     static final PrintStream out        = System.out;
  26 
  27     static final boolean     PASSED     = true;
  28     static final boolean     FAILED     = false;
  29     static final String      MSG_PASSED = "ParentLoggersTest: passed";


   1 /*
   2  * @test
   3  * @bug     6498300
   4  *
   5  * @summary regression: parent loggers are not properly registered
   6  * @author  ss45998
   7  *
   8  * @build ParentLoggersTest
   9  * @run main/othervm ParentLoggersTest
  10  */
  11 
  12 /*
  13  * There are several original tests which were failed when
  14  * this regression was introduced. This is an extra test
  15  * to ensure that the parent loggers with the defined
  16  * .level property are implicitly registered.
  17  */
  18 
  19 import java.util.*;
  20 import java.io.*;
  21 import java.util.logging.*;
  22 
  23 public class ParentLoggersTest {
  24     static final LogManager  logMgr     = LogManager.getLogManager();
  25     static final PrintStream out        = System.out;
  26 
  27     static final boolean     PASSED     = true;
  28     static final boolean     FAILED     = false;
  29     static final String      MSG_PASSED = "ParentLoggersTest: passed";