38 if [ "${TESTJAVA}" = "" ]
39 then
40 echo "TESTJAVA not set. Test cannot execute. Failed."
41 exit 1
42 fi
43
44 if [ "${TESTSRC}" = "" ]
45 then
46 echo "TESTSRC not set. Test cannot execute. Failed."
47 exit 1
48 fi
49
50 if [ "${TESTCLASSES}" = "" ]
51 then
52 echo "TESTCLASSES not set. Test cannot execute. Failed."
53 exit 1
54 fi
55
56 JAVA="${TESTJAVA}"/bin/java
57
58 "${JAVA}" ${TESTVMOPTS} -Dtest.classes="${TESTCLASSES}" \
59 -javaagent:retransformAgent.jar \
60 -classpath "${TESTCLASSES}" \
61 VerifyLocalVariableTableOnRetransformTest \
62 VerifyLocalVariableTableOnRetransformTest \
63 > output.log 2>&1
64 cat output.log
65
66 MESG="did not match .class file"
67 grep "$MESG" output.log
68 result=$?
69 if [ "$result" = 0 ]; then
70 echo "FAIL: found '$MESG' in the test output"
71
72 echo "INFO: 'javap -v' comparison between the .class files:"
73 ${JAVA}p -v -classpath "${TESTCLASSES}" DummyClassWithLVT > orig.javap
74 ${JAVA}p -v DummyClassWithLVT > mismatched.javap
75 diff orig.javap mismatched.javap
76
77 result=1
78 else
|
38 if [ "${TESTJAVA}" = "" ]
39 then
40 echo "TESTJAVA not set. Test cannot execute. Failed."
41 exit 1
42 fi
43
44 if [ "${TESTSRC}" = "" ]
45 then
46 echo "TESTSRC not set. Test cannot execute. Failed."
47 exit 1
48 fi
49
50 if [ "${TESTCLASSES}" = "" ]
51 then
52 echo "TESTCLASSES not set. Test cannot execute. Failed."
53 exit 1
54 fi
55
56 JAVA="${TESTJAVA}"/bin/java
57
58 "${JAVA}" ${TESTVMOPTS} ${TESTJAVAOPTS} -Dtest.classes="${TESTCLASSES}" \
59 -javaagent:retransformAgent.jar \
60 -classpath "${TESTCLASSES}" \
61 VerifyLocalVariableTableOnRetransformTest \
62 VerifyLocalVariableTableOnRetransformTest \
63 > output.log 2>&1
64 cat output.log
65
66 MESG="did not match .class file"
67 grep "$MESG" output.log
68 result=$?
69 if [ "$result" = 0 ]; then
70 echo "FAIL: found '$MESG' in the test output"
71
72 echo "INFO: 'javap -v' comparison between the .class files:"
73 ${JAVA}p -v -classpath "${TESTCLASSES}" DummyClassWithLVT > orig.javap
74 ${JAVA}p -v DummyClassWithLVT > mismatched.javap
75 diff orig.javap mismatched.javap
76
77 result=1
78 else
|