-
Bug
-
Resolution: Fixed
-
P3
-
5.0u6
-
b03
-
x86
-
solaris_10
Auto regression test(LimitDirectMemory.sh) sript not able to identify Solaris-AMD machine
Testcase:
<Regression-WS>/CTE_REGTEST/Generic/4879883/LimitDirectMemory.sh
JDK:
----
bash-3.00$ /export/updates/jdks/jdk1.5.0_06/bin/java -version
java version "1.5.0_06-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-ea-b02)
Java HotSpot(TM) Server VM (build 1.5.0_06-ea-b02, mixed mode)
Details:
--------
The above testcase has to skip for Skip for AMD 64(Solaris/Linux).
But its not skipping for Solaris-AMDs .
Script used to identify:
*************************************************
# set platform-dependent variables
OS=`uname -s`
case "$OS" in
SunOS | Linux )
NULL=/dev/null
PS=":"
FS="/"
## for solaris, linux it's HOME
FILE_LOCATION=$HOME
if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" -a `uname -p`='sparc' ]
then
BIT_FLAG="-d64"
fi
if [ `uname -p` = "x86_64" ]
then
echo "Test Skipped for AMD 64"
exit 0
----
----
*************************************************
Script file is not able to identify the Solaris-AMD machine, so the test was executing in Solaris-AMD and its failing.
In the script file:
uname -p is used to identify both(Solaris/Linux) AMDs.
Srcipt works fine for Linux-AMDs but not for Solaris-AMDs.
In Linux-AMD
uname -p :-> x86_64
But in Solaris-AMD
uname -p :-> i386
Testcase:
<Regression-WS>/CTE_REGTEST/Generic/4879883/LimitDirectMemory.sh
JDK:
----
bash-3.00$ /export/updates/jdks/jdk1.5.0_06/bin/java -version
java version "1.5.0_06-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-ea-b02)
Java HotSpot(TM) Server VM (build 1.5.0_06-ea-b02, mixed mode)
Details:
--------
The above testcase has to skip for Skip for AMD 64(Solaris/Linux).
But its not skipping for Solaris-AMDs .
Script used to identify:
*************************************************
# set platform-dependent variables
OS=`uname -s`
case "$OS" in
SunOS | Linux )
NULL=/dev/null
PS=":"
FS="/"
## for solaris, linux it's HOME
FILE_LOCATION=$HOME
if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" -a `uname -p`='sparc' ]
then
BIT_FLAG="-d64"
fi
if [ `uname -p` = "x86_64" ]
then
echo "Test Skipped for AMD 64"
exit 0
----
----
*************************************************
Script file is not able to identify the Solaris-AMD machine, so the test was executing in Solaris-AMD and its failing.
In the script file:
uname -p is used to identify both(Solaris/Linux) AMDs.
Srcipt works fine for Linux-AMDs but not for Solaris-AMDs.
In Linux-AMD
uname -p :-> x86_64
But in Solaris-AMD
uname -p :-> i386