- 
    Bug 
- 
    Resolution: Duplicate
- 
     P3 P3
- 
    None
- 
    17
                    [Note this CR also applies to jstatLineCounts2.sh, jstatLineCounts3.sh and jstatLineCounts4.sh]
jstatLineCounts1.sh used to have just one jstat command:
jstat -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk
The awk script would check the output and use exit 1 if not valid. This would then cause jstatLineCounts1.sh to exit with 1 as the error code, causing the test to appropriately fail. However,JDK-8245129 introduced a second jstat command:
jstat -J-XX:+UseParallelGC -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk
As a result of this, failure of the first command no longer causes the test to fail, and in fact the first command is now failing and is going undetected. SeeJDK-8268485.
            
jstatLineCounts1.sh used to have just one jstat command:
jstat -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk
The awk script would check the output and use exit 1 if not valid. This would then cause jstatLineCounts1.sh to exit with 1 as the error code, causing the test to appropriately fail. However,
jstat -J-XX:+UseParallelGC -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk
As a result of this, failure of the first command no longer causes the test to fail, and in fact the first command is now failing and is going undetected. See
- duplicates
- 
                    JDK-8279005 sun/tools/jstat tests do not check for test case exit codes after JDK-8245129 -           
- Resolved
 
-         
- relates to
- 
                    JDK-8268211 sun/tools/jstat/jstatLineCountsX.sh tests fail on OCI Linux-aarch64 -           
- Closed
 
-         
- 
                    JDK-8268485 first jstat command in sun/tools/jstat/jstatLineCounts1.sh is failing -           
- Closed
 
-         
- 
                    JDK-8248691 jstat displays "0" or "-" for metaspace values -           
- Closed
 
-         
- 
                    JDK-8245129 Enhance jstat gc option output and tests -           
- Resolved
 
-