jstatGcNewOutput1.sh revision 0:37a05a11f281
1298128Ssgalabov#
2298128Ssgalabov# Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
3298128Ssgalabov# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4298128Ssgalabov#
5298128Ssgalabov# This code is free software; you can redistribute it and/or modify it
6298128Ssgalabov# under the terms of the GNU General Public License version 2 only, as
7298128Ssgalabov# published by the Free Software Foundation.
8298128Ssgalabov#
9298128Ssgalabov# This code is distributed in the hope that it will be useful, but WITHOUT
10298128Ssgalabov# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11298128Ssgalabov# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12298128Ssgalabov# version 2 for more details (a copy is included in the LICENSE file that
13298128Ssgalabov# accompanied this code).
14298128Ssgalabov#
15298128Ssgalabov# You should have received a copy of the GNU General Public License version
16298128Ssgalabov# 2 along with this work; if not, write to the Free Software Foundation,
17298128Ssgalabov# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18298128Ssgalabov#
19298128Ssgalabov# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20298128Ssgalabov# CA 95054 USA or visit www.sun.com if you need additional information or
21298128Ssgalabov# have any questions.
22298128Ssgalabov#
23298128Ssgalabov
24298128Ssgalabov# @test
25298128Ssgalabov# @bug 4990825
26298128Ssgalabov# @run shell jstatGcNewOutput1.sh
27298128Ssgalabov# @summary Test that output of 'jstat -gcnew 0' has expected line counts
28298128Ssgalabov
29298128Ssgalabov. ${TESTSRC-.}/../../jvmstat/testlibrary/utils.sh
30298128Ssgalabov
31298128Ssgalabovsetup
32298128Ssgalabovverify_os
33298128Ssgalabov
34298128SsgalabovJSTAT="${TESTJAVA}/bin/jstat"
35298128Ssgalabov
36298128Ssgalabov${JSTAT} -gcnew 0 2>&1 | awk -f ${TESTSRC}/gcNewOutput1.awk
37298128Ssgalabov