test/hotspot/jtreg/runtime/NMT/PrintNMTStatistics.java
changeset 48634 ec666229de1f
parent 47216 71c04702a3d5
child 49980 57dd7b4ba338
equal deleted inserted replaced
48633:2569f227ae8e 48634:ec666229de1f
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, 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.
    44       "-version");
    44       "-version");
    45 
    45 
    46     OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());
    46     OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());
    47     output_detail.shouldContain("Virtual memory map:");
    47     output_detail.shouldContain("Virtual memory map:");
    48     output_detail.shouldContain("Details:");
    48     output_detail.shouldContain("Details:");
    49     output_detail.shouldNotContain("error");
       
    50     output_detail.shouldHaveExitValue(0);
    49     output_detail.shouldHaveExitValue(0);
    51 
    50 
    52     // Make sure memory reserved for Module processing is recorded.
    51     // Make sure memory reserved for Module processing is recorded.
    53     output_detail.shouldContain(" Module (reserved=");
    52     output_detail.shouldContain(" Module (reserved=");
    54 
    53 
    60 
    59 
    61     OutputAnalyzer output_summary = new OutputAnalyzer(pb1.start());
    60     OutputAnalyzer output_summary = new OutputAnalyzer(pb1.start());
    62     output_summary.shouldContain("Java Heap (reserved=");
    61     output_summary.shouldContain("Java Heap (reserved=");
    63     output_summary.shouldNotContain("Virtual memory map:");
    62     output_summary.shouldNotContain("Virtual memory map:");
    64     output_summary.shouldNotContain("Details:");
    63     output_summary.shouldNotContain("Details:");
    65     output_summary.shouldNotContain("error");
       
    66     output_summary.shouldHaveExitValue(0);
    64     output_summary.shouldHaveExitValue(0);
    67     }
    65     }
    68 }
    66 }