6203816: Can not run test/java/security/Security/ClassLoaderDeadlock.sh from the command line
Fixed the script to not delete the provider sub-directory Reviewed-by: weijun
This commit is contained in:
parent
5731d03344
commit
b3d5652149
@ -68,11 +68,10 @@ case "$OS" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# remove old class files
|
|
||||||
cd ${TESTCLASSES}${FILESEP}
|
cd ${TESTCLASSES}${FILESEP}
|
||||||
rm -f ClassLoaderDeadlock.class
|
if [ ! -d provider ] ; then
|
||||||
rm -rf provider
|
mkdir provider
|
||||||
mkdir provider
|
fi
|
||||||
|
|
||||||
# compile the test program
|
# compile the test program
|
||||||
${TESTJAVA}${FILESEP}bin${FILESEP}javac \
|
${TESTJAVA}${FILESEP}bin${FILESEP}javac \
|
||||||
@ -88,4 +87,11 @@ ${TESTJAVA}${FILESEP}bin${FILESEP}java \
|
|||||||
-classpath "${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP}Deadlock.jar" \
|
-classpath "${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP}Deadlock.jar" \
|
||||||
ClassLoaderDeadlock
|
ClassLoaderDeadlock
|
||||||
|
|
||||||
exit $?
|
STATUS=$?
|
||||||
|
|
||||||
|
# clean up
|
||||||
|
rm -f 'ClassLoaderDeadlock.class' 'ClassLoaderDeadlock$1.class' \
|
||||||
|
'ClassLoaderDeadlock$DelayClassLoader.class' \
|
||||||
|
provider${FILESEP}HashProvider.class
|
||||||
|
|
||||||
|
exit $STATUS
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
# @test
|
# @test
|
||||||
# @bug 6440846
|
# @bug 6440846
|
||||||
# @ignore until 6203816 is dealt with.
|
|
||||||
# @summary make sure we do not deadlock between ExtClassLoader and AppClassLoader
|
# @summary make sure we do not deadlock between ExtClassLoader and AppClassLoader
|
||||||
# @author Valerie Peng
|
# @author Valerie Peng
|
||||||
# @run shell/timeout=20 Deadlock2.sh
|
# @run shell/timeout=20 Deadlock2.sh
|
||||||
@ -71,11 +70,14 @@ esac
|
|||||||
|
|
||||||
# remove old class files
|
# remove old class files
|
||||||
cd ${TESTCLASSES}
|
cd ${TESTCLASSES}
|
||||||
rm -f Deadlock2*.class
|
|
||||||
if [ -d testlib ] ; then
|
if [ -d testlib ] ; then
|
||||||
rm -rf testlib
|
rm -rf testlib
|
||||||
fi
|
fi
|
||||||
cp -r ${TESTJAVA}${FILESEP}lib${FILESEP}ext testlib
|
if [ -d ${TESTJAVA}${FILESEP}lib${FILESEP}ext ] ; then
|
||||||
|
cp -r ${TESTJAVA}${FILESEP}lib${FILESEP}ext testlib
|
||||||
|
else
|
||||||
|
cp -r ${TESTJAVA}${FILESEP}jre${FILESEP}lib${FILESEP}ext testlib
|
||||||
|
fi
|
||||||
|
|
||||||
# compile and package the test program
|
# compile and package the test program
|
||||||
${TESTJAVA}${FILESEP}bin${FILESEP}javac \
|
${TESTJAVA}${FILESEP}bin${FILESEP}javac \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user