test/hotspot/jtreg/runtime/logging/MonitorInflationTest.java
changeset 53557 4cfe0e5a3b79
parent 47216 71c04702a3d5
child 53588 a5f46c4690f8
equal deleted inserted replaced
53556:f3546d51ce9c 53557:4cfe0e5a3b79
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, 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.
    35 import jdk.test.lib.process.ProcessTools;
    35 import jdk.test.lib.process.ProcessTools;
    36 
    36 
    37 public class MonitorInflationTest {
    37 public class MonitorInflationTest {
    38     static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
    38     static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
    39         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    39         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    40         output.shouldContain("Inflating object");
    40         output.shouldContain("inflate(has_locker):");
    41         output.shouldContain("type MonitorInflationTest$Waiter");
    41         output.shouldContain("type='MonitorInflationTest$Waiter'");
    42         output.shouldContain("I've been waiting.");
    42         output.shouldContain("I've been waiting.");
    43         output.shouldHaveExitValue(0);
    43         output.shouldHaveExitValue(0);
    44     }
    44     }
    45 
    45 
    46     static void analyzeOutputOff(ProcessBuilder pb) throws Exception {
    46     static void analyzeOutputOff(ProcessBuilder pb) throws Exception {