harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3305) [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest fails for canRedefineClasses
Date Tue, 06 Mar 2007 06:58:24 GMT
[jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest
fails for canRedefineClasses
-----------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3305
                 URL: https://issues.apache.org/jira/browse/HARMONY-3305
             Project: Harmony
          Issue Type: Bug
          Components: JDK
         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r514598
            Reporter: Ivan Popov


The following JDWP unit test

   org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest 

fails because of not implemented JVMTI capability can_redefine_classes in DRLVM, which is
requred for JDWP capability canRedefineClasses.

Typical diagnostics is the following:

<...>
Received canRedefineClasses = false
	   ## FAILURE: Expected canRedefineClasses = true
<...>
junit.framework.AssertionFailedError: Unexpected received capabilities values found out 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729)

at org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest.testCapabilitiesNew001(CapabilitiesNewTest.java:111)

at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) 3.453 

To reproduce this failure:

1. create Harmony JDK with federated build:
    svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
    cd trunk
    ant

2. goto jdktools directory, add junit to classpath, and run particular test:
    cd working_jdktools
    export CLASSPATH=<...>/trunk/common_resources/depends/jars/junit_3.8.2/junit.jar
    ant test -Dbuild.module=jpda -Dtest.case=org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest


3. see results in <...>/trunk/working_jdktools/build/test_report/html/index.html

It is possible also to run test directly from command line:
   cd working_jdktools
   deploy/jdk/bin/java -classpath ../common_resources/depends/jars/junit_3.8.2/junit.jar:build/tests/classes
\
   org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest 
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message