-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
hs24, 7u40
runtime/7051189/Xchecksig.sh fails because "printf" treat VM options as own options:
java version "1.7.0-internal-fastdebug"
Java(TM) SE Runtime Environment (build 1.7.0-internal-fastdebug-blablabla)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b02-fastdebug, mixed mode)
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -d: unknown option
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -6: unknown option
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -4: unknown option
Usage: printf [ options ] format [string ...]
----------rerun:(20/1291)*----------
Here is problematic part of test:
if [ ${OS} -eq "SunOS" ]
then
printf "SunOS test TESTVMOPTS = ${TESTVMOPTS}"
printf ${TESTVMOPTS} | grep d64 > /dev/null
if [ $? -eq 0 ]
then
printf "SunOS 64-bit test\n"
BIT_FLAG=-d64
fi
fi
So issue could be reproduced on 64bit Solaris.
Only hs trains prior to 25 are affected, because test was rewritten in hs25 to use java wrapper instead of shell script (JDK-7121403).
java version "1.7.0-internal-fastdebug"
Java(TM) SE Runtime Environment (build 1.7.0-internal-fastdebug-blablabla)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b02-fastdebug, mixed mode)
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -d: unknown option
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -6: unknown option
/blablabla/test/runtime/7051189/Xchecksig.sh[58]: printf: -4: unknown option
Usage: printf [ options ] format [string ...]
----------rerun:(20/1291)*----------
Here is problematic part of test:
if [ ${OS} -eq "SunOS" ]
then
printf "SunOS test TESTVMOPTS = ${TESTVMOPTS}"
printf ${TESTVMOPTS} | grep d64 > /dev/null
if [ $? -eq 0 ]
then
printf "SunOS 64-bit test\n"
BIT_FLAG=-d64
fi
fi
So issue could be reproduced on 64bit Solaris.
Only hs trains prior to 25 are affected, because test was rewritten in hs25 to use java wrapper instead of shell script (JDK-7121403).