harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r506988 - in /harmony/enhanced/drlvm/trunk: build/make/excludes/ vm/tests/kernel/java/lang/
Date Tue, 13 Feb 2007 12:52:56 GMT
Author: varlax
Date: Tue Feb 13 04:52:50 2007
New Revision: 506988

URL: http://svn.apache.org/viewvc?view=rev&rev=506988
Log:
Regression testcase for H-3116 added.

Modified:
    harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86.int
    harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86_64.int
    harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.windows.x86.int
    harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadRTest.java

Modified: harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86.int
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86.int?view=diff&rev=506988&r1=506987&r2=506988
==============================================================================
--- harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86.int (original)
+++ harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86.int Tue
Feb 13 04:52:50 2007
@@ -9,3 +9,5 @@
 java/lang/RuntimeAdditionalTest41.java
 java/lang/RuntimeAdditionalTest42.java
 
+# HARMONY-3171
+java/lang/ThreadRTest.java

Modified: harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86_64.int
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86_64.int?view=diff&rev=506988&r1=506987&r2=506988
==============================================================================
--- harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86_64.int
(original)
+++ harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.linux.x86_64.int
Tue Feb 13 04:52:50 2007
@@ -12,3 +12,5 @@
 java/lang/ClassGenericsTest.java
 java/lang/ClassGenericsTest4.java
     
+# HARMONY-3171
+java/lang/ThreadRTest.java

Modified: harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.windows.x86.int
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.windows.x86.int?view=diff&rev=506988&r1=506987&r2=506988
==============================================================================
--- harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.windows.x86.int
(original)
+++ harmony/enhanced/drlvm/trunk/build/make/excludes/exclude.drlvm_kernel.windows.x86.int
Tue Feb 13 04:52:50 2007
@@ -11,3 +11,6 @@
 
 # HARMONY-2453 
 java/lang/SystemTest.java
+
+# HARMONY-3171
+java/lang/ThreadRTest.java

Modified: harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadRTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadRTest.java?view=diff&rev=506988&r1=506987&r2=506988
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadRTest.java (original)
+++ harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadRTest.java Tue Feb 13 04:52:50
2007
@@ -91,5 +91,40 @@
         } catch (IllegalArgumentException e) { 
             //expected
         } 
-    }                     
+    }    
+
+    static class TT implements Runnable {
+        public volatile boolean started = false;
+        public volatile boolean finished = false;
+        public void run() { 
+            started = true; 
+            try{ 
+                synchronized(this) { 
+                    while (true){ 
+                    } 
+                } 
+            } finally { 
+                finished = true; 
+            } 
+        } 
+    } 
+
+    /*
+     * Regression test for Harmony-3116
+     */
+    public void testStopFinally() throws Exception {
+        TT tt = new TT();
+        Thread t = new Thread(tt); 
+        t.start(); 
+        while(!tt.started){ 
+        } 
+        t.stop(); 
+        
+        int count = 10;
+        while(!tt.finished && count-- > 0 ){
+            Thread.sleep(100);
+        }          
+        assertTrue(tt.finished);
+    } 
+
 }



Mime
View raw message