harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivavladi...@apache.org
Subject svn commit: r553723 - in /harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario: REFTYPE003/RefTypeDebuggee003.java share/StressTestCase.java
Date Fri, 06 Jul 2007 04:22:32 GMT
Author: ivavladimir
Date: Thu Jul  5 21:22:29 2007
New Revision: 553723

URL: http://svn.apache.org/viewvc?view=rev&rev=553723
Log:
patch for HARMONY-4322'[buildtest][stress] JDWP stress tests REFTYPE003, REFTYPE004 are sensitive
to class loading' was applied

Modified:
    harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/REFTYPE003/RefTypeDebuggee003.java
    harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/share/StressTestCase.java

Modified: harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/REFTYPE003/RefTypeDebuggee003.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/REFTYPE003/RefTypeDebuggee003.java?view=diff&rev=553723&r1=553722&r2=553723
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/REFTYPE003/RefTypeDebuggee003.java
(original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/REFTYPE003/RefTypeDebuggee003.java
Thu Jul  5 21:22:29 2007
@@ -92,8 +92,6 @@
         RefType003_TestClass04 testClass04 = new RefType003_TestClass04();
         RefType003_TestClass05 testClass05 = new RefType003_TestClass05();
        
-        
-
         freeMemory = currentRuntime.freeMemory();
         logWriter.println("--> RefTypeDebuggee003: freeMemory (bytes) after loading some
classes = " + freeMemory);
         
@@ -102,10 +100,18 @@
         printlnForDebug("RefTypeDebuggee003: After sendSignalAndWait(SIGNAL_READY_03)");
         
         logWriter.println("--> RefTypeDebuggee003: load some another classes...");
-        NewTestClass1 testCls1 = new NewTestClass1();
-        NewTestClass2 testCls2 = new NewTestClass2();
-        NewTestClass3 testCls3 = new NewTestClass3();
         
+        Class loadedClasses[] = new Class[4];
+        try {
+            for (int i = 1; i < 4; i++) {
+                String name = "org.apache.harmony.test.stress.jpda.jdwp.scenario.REFTYPE003.NewTestClass"
+ i;
+                printlnForDebug("RefTypeDebuggee003: loading class: " + name);
+                loadedClasses[i] = Class.forName(name);
+            }
+        } catch (ClassNotFoundException exp) {
+            logWriter.print("Exception during loading classes: " + exp);
+        }
+
         freeMemory = currentRuntime.freeMemory();
         logWriter.println("--> RefTypeDebuggee003: freeMemory (bytes) after loading some
another classes = " + freeMemory);
         

Modified: harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/share/StressTestCase.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/share/StressTestCase.java?view=diff&rev=553723&r1=553722&r2=553723
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/share/StressTestCase.java
(original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/share/StressTestCase.java
Thu Jul  5 21:22:29 2007
@@ -2212,12 +2212,10 @@
             long typeID = reply.getNextValueAsReferenceTypeID();
             for (int j = 0; j < refTypesArray.getLength(); j++) {
                 if (typeID == refTypesArray.getRefType(j)) {
-                    success = false;
                     logWriter
                             .println("#WARNING: refTypeID = " + typeID + " of new class "
                                     + checkedNewClassName
                                     + " already exists among classes loaded before ");
-                    break;
                 }
             }
             String sourceFile = getSource(typeID);



Mime
View raw message