jdk/test/sun/tools/jps/jps-Vvml_Output2.awk
author lana
Tue, 20 Aug 2013 17:46:21 -0700
changeset 19513 f90fd926e074
parent 2 90ce3da70b43
permissions -rw-r--r--
Merge

# 1.1 04/03/08

BEGIN	{
	    totallines=0; matched=0
	}

/^[0-9]+ Sleeper$/	{
	    matched++;
	}

/^[0-9]+ sun.tools.jps.Jps -Vvml.*-XX:Flags=.*vmflags.* \+DisableExplicitGC$/	{
	    matched++;
	}

	{ totallines++; print $0 }

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