changeset 53946:06d028f7578e

8214052: [testbug] vmTestbase/vm/compiler/CodeCacheInfoOnCompilation - wrong shell used Reviewed-by: jwilhelm Contributed-by: merkel05@gmail.com
author jwilhelm
date Sat, 08 Dec 2018 05:04:19 +0100
parents 449a2ce77784
children 583fd71c47d6
files test/hotspot/jtreg/vmTestbase/vm/compiler/CodeCacheInfoOnCompilation/run.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/vmTestbase/vm/compiler/CodeCacheInfoOnCompilation/run.sh	Fri Dec 07 17:20:44 2018 -0500
+++ b/test/hotspot/jtreg/vmTestbase/vm/compiler/CodeCacheInfoOnCompilation/run.sh	Sat Dec 08 05:04:19 2018 +0100
@@ -27,7 +27,7 @@
 
 ver=$(${TESTED_JAVA_HOME}/bin/java ${JAVA_OPTS} -version 2>&1)
 isComp=$( echo ${ver} | grep -c "compiled mode")
-if [[ $isComp  != 1 ]]; then
+if [ "$isComp" -ne 1 ]; then
         echo "skipped. This test works only with -Xcomp"
         exit
 fi
@@ -40,7 +40,7 @@
 res=$(${TESTED_JAVA_HOME}/bin/java ${JAVA_OPTS} -XX:+PrintCodeCacheOnCompilation -XX:-Inline vm.compiler.CodeCacheInfoOnCompilation.PrintOnCall | egrep -ce "${pattern}")
 echo "res: " ${res}
 
-if (( "${res}" != "0" )); then
+if [ "$res" -ne 0 ]; then
         echo "passed"
         true
 else