jdk/test/sun/tools/jps/jps-Vm_Output2.awk
changeset 2 90ce3da70b43
equal deleted inserted replaced
0:fd16c54261b3 2:90ce3da70b43
       
     1 #
       
     2 BEGIN	{
       
     3 	    totallines=0; matched=0
       
     4 	}
       
     5 
       
     6 /^[0-9]+ Jps -Vm.* \+DisableExplicitGC$/	{
       
     7 	    matched++;
       
     8 	}
       
     9 
       
    10 	{ totallines++; print $0 }
       
    11 
       
    12 END	{
       
    13 	    if ((totallines > 0) && (matched >= 1)) {
       
    14 	        exit 0
       
    15 	    }
       
    16 	    else {
       
    17 	        exit 1
       
    18 	    }
       
    19 	}