# HG changeset patch # User dsamersoff # Date 1360775190 -14400 # Node ID aab03a20f48fe6e55e25b872cca9663425a357ab # Parent 9695257b9b496628f01d7fea6a3f25841ee7a685 8008095: TEST_BUG: JDK-8002048 one more testcase failure on Solaris Summary: fixed couple of more Solaris shell incompatibilities Reviewed-by: chegar diff -r 9695257b9b49 -r aab03a20f48f jdk/test/sun/management/jdp/JdpTest.sh --- a/jdk/test/sun/management/jdp/JdpTest.sh Wed Feb 13 16:03:24 2013 +0000 +++ b/jdk/test/sun/management/jdp/JdpTest.sh Wed Feb 13 21:06:30 2013 +0400 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -x # Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -51,7 +51,7 @@ # sun.* packages is not included to symbol file lib/ct.sym so we have # to ignore it - if [ ! -f ${_testclasses} ] + if [ ! -d ${_testclasses} ] then mkdir -p ${_testclasses} fi @@ -295,12 +295,12 @@ esac done -if [ ${_compile} = "yes" ] +if [ "${_compile}" = "yes" ] then _do_compile fi -if [ ${_jtreg} = "yes" ] +if [ "${_jtreg}" = "yes" ] then _testclasses=${TESTCLASSES} _testsrc=${TESTSRC} @@ -309,7 +309,7 @@ # Make sure _tesclasses is absolute path tt=`echo ${_testclasses} | sed -e 's,/,,'` -if [ ${tt} = ${_testclasses} ] +if [ "${tt}" = "${_testclasses}" ] then _testclasses="${_pwd}/${_testclasses}" fi @@ -319,7 +319,7 @@ rm -f ${_logname} rm -f ${_policyname} -if [ -e ${_testsrc}/policy.tpl ] +if [ -f ${_testsrc}/policy.tpl ] then cat ${_testsrc}/policy.tpl | \