jdk/test/sun/tools/jps/jps-vm_Output1.awk
author alanb
Fri, 28 Jun 2013 19:45:06 +0100
changeset 18581 8efa694a57af
parent 2 90ce3da70b43
permissions -rw-r--r--
8019384: jps and jcmd tests fail when there is a process started with a .war file Reviewed-by: dcubed, sla, mchung

#
BEGIN	{
	    totallines=0; matched=0
	}

/^[0-9]+ Jps -vm.* -XX:\+UseParallelGC$/	{
	    matched++;
	}

	{ totallines++; print $0 }

END	{
	    if ((totallines > 0) && (matched >= 1)) {
	        exit 0
	    }
	    else {
	        exit 1
	    }
	}