[jdk8u-dev] RFR: 8376338: Test7005594.sh fails when given a memory value with decimals

Severin Gehwolf sgehwolf at openjdk.org
Mon Feb 2 12:51:52 UTC 2026


On Mon, 2 Feb 2026 12:03:26 GMT, Adam Farley <afarley at openjdk.org> wrote:

> > Please make the fix PR dependent on #742 which enables MacOS X GHA again. That way we should see test runs for Linux x86_64 and x86 (32 bit, which are currently broken) as well as MacOS X runs of the changed test.
> 
> Sure thing.

Thanks.

> Wonder why I didn't see that. Will check it out.

Looks to me that on Ubuntu `/bin/sh` is `dash` over `bash`:


# MEM=`cat /proc/meminfo |grep ^MemTotal: | awk '{print $2}'`
# echo $MEM
65250308
# MEM="$((${MEM/.*/} / 1024))"
/bin/sh: 5: Bad substitution
# echo $?  
2
# echo $MEM
65250308

-------------

PR Comment: https://git.openjdk.org/jdk8u-dev/pull/751#issuecomment-3834930158


More information about the jdk8u-dev mailing list