提交 2006942d 编写于 作者: B bmoloden

8151722: TESTBUG: New test compiler/native/TestDirtyInt.sh should be modified

Summary: Fixed string comparison and indentation
Reviewed-by: kvn
上级 e3ced864
...@@ -30,9 +30,8 @@ ...@@ -30,9 +30,8 @@
## @run shell/timeout=30 TestDirtyInt.sh ## @run shell/timeout=30 TestDirtyInt.sh
## ##
if [ "${TESTSRC}" = "" ] if [ -z "${TESTSRC}" ]; then
then TESTSRC="${PWD}"
TESTSRC=${PWD}
echo "TESTSRC not set. Using "${TESTSRC}" as default" echo "TESTSRC not set. Using "${TESTSRC}" as default"
fi fi
echo "TESTSRC=${TESTSRC}" echo "TESTSRC=${TESTSRC}"
...@@ -40,10 +39,10 @@ echo "TESTSRC=${TESTSRC}" ...@@ -40,10 +39,10 @@ echo "TESTSRC=${TESTSRC}"
. ${TESTSRC}/../../test_env.sh . ${TESTSRC}/../../test_env.sh
# set platform-dependent variables # set platform-dependent variables
if [ $VM_OS == "linux" -a $VM_CPU == "sparcv9" ]; then if [ "$VM_OS" = "linux" -a "$VM_CPU" = "sparcv9" ]; then
echo "Testing on linux-sparc" echo "Testing on linux-sparc"
gcc_cmd=`which gcc` gcc_cmd=`which gcc`
if [ "x$gcc_cmd" == "x" ]; then if [ -z "$gcc_cmd" ]; then
echo "WARNING: gcc not found. Cannot execute test." 2>&1 echo "WARNING: gcc not found. Cannot execute test." 2>&1
exit 0; exit 0;
fi fi
...@@ -70,8 +69,7 @@ cmd="${TESTJAVA}${FS}bin${FS}java \ ...@@ -70,8 +69,7 @@ cmd="${TESTJAVA}${FS}bin${FS}java \
echo "$cmd" echo "$cmd"
eval $cmd eval $cmd
if [ $? = 0 ] if [ $? = 0 ]; then
then
echo "Test Passed" echo "Test Passed"
exit 0 exit 0
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册