Test7005594.sh has a bash-style parameter substitution on line 40 that is not compatible with dash (used on Ubuntu 22.04 to run this script in git PR checks).
Line 40: # MEM="$((${MEM/\.*/} / 1024))"
This can lead to a 'bad substitution' error message.
Recommend swapping this out with a 'cut' command for full posix coimpliance.
MEM="$(echo ${MEM} | cut -d'.' -f1)"
MEM="$((${MEM} / 1024))"
Line 40: # MEM="$((${MEM/\.*/} / 1024))"
This can lead to a 'bad substitution' error message.
Recommend swapping this out with a 'cut' command for full posix coimpliance.
MEM="$(echo ${MEM} | cut -d'.' -f1)"
MEM="$((${MEM} / 1024))"
- caused by
-
JDK-8376338 Test7005594.sh fails when given a memory value with decimals
-
- Resolved
-
- is blocked by
-
JDK-8374948 [8u] saproc & jsig builds add duplicate linker flags on Darwin/MacOS
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk8u-dev/754