Skip to content

Commit

Permalink
[Misc] fix test TestDefaultCodeCacheSize failure
Browse files Browse the repository at this point in the history
Summary: fix test TestDefaultCodeCacheSize.sh failure. Update logic of comparing

Test Plan: CI pipeline

Reviewed-by: tjw378335, JoshuaZhuwj

Issue: dragonwell-project#579
  • Loading branch information
sandlerwang committed Jul 26, 2023
1 parent 654b014 commit 18f95f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hotspot/test/compiler/codecache/TestDefaultCodeCacheSize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
# @run shell TestDefaultCodeCacheSize.sh
#

CodeCache=`${TESTJAVA}/bin/java -XX:+PrintFlagsFinal -version | grep ReservedCodeCacheSize`
${TESTJAVA}/bin/java -XX:+PrintFlagsFinal -version | grep ReservedCodeCacheSize | grep 251*
CodeCache=`${TESTJAVA}/bin/java -XX:+PrintFlagsFinal -version | grep ReservedCodeCacheSize | awk '{print $4}'`

if [ "0" == $? ];
if [ $CodeCache -gt 200000000 ];
then
echo "ReservedCodeCacheSize is 240m or $CodeCache"
echo "--- Test passed"
Expand Down

0 comments on commit 18f95f7

Please sign in to comment.