6759810: bad regression test causes source file to be deleted
Reviewed-by: mcimadamore
This commit is contained in:
parent
ad3ca8d8f2
commit
72ffb28a4d
@ -21,12 +21,4 @@
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 4266026
|
||||
* @summary javac no longer follows symlinks
|
||||
*
|
||||
* @run shell links.sh
|
||||
*/
|
||||
|
||||
class T extends a.B {}
|
||||
|
@ -23,6 +23,12 @@
|
||||
# have any questions.
|
||||
#
|
||||
|
||||
# @test
|
||||
# @bug 4266026
|
||||
# @summary javac no longer follows symlinks
|
||||
#
|
||||
# @run shell links.sh
|
||||
|
||||
|
||||
if [ "${TESTSRC}" = "" ]
|
||||
then
|
||||
@ -58,8 +64,11 @@ case "$OS" in
|
||||
;;
|
||||
esac
|
||||
|
||||
mkdir tmp
|
||||
cp ${TESTSRC}/b/B.java tmp
|
||||
|
||||
rm -rf T.class B.class b/B.class "${TESTCLASSES}/a" "${TESTCLASSES}/classes"
|
||||
ln -s "${TESTSRC}/b" "${TESTCLASSES}/a"
|
||||
ln -s `pwd`/tmp "${TESTCLASSES}/a"
|
||||
mkdir "${TESTCLASSES}/classes"
|
||||
|
||||
exec "${TESTJAVA}/bin/javac" ${TESTTOOLVMOPTS} -sourcepath "${TESTCLASSES}" -d "${TESTCLASSES}/classes" "${TESTSRC}/T.java" 2>&1
|
||||
"${TESTJAVA}/bin/javac" ${TESTTOOLVMOPTS} -sourcepath "${TESTCLASSES}" -d "${TESTCLASSES}/classes" "${TESTSRC}/T.java" 2>&1
|
||||
|
Loading…
x
Reference in New Issue
Block a user