commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1095162 - in /commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime: TestMutex.java TestSemaphore.java
Date Tue, 19 Apr 2011 18:34:09 GMT
Author: mturk
Date: Tue Apr 19 18:34:09 2011
New Revision: 1095162

URL: http://svn.apache.org/viewvc?rev=1095162&view=rev
Log:
Add more verbosity to sync stages

Modified:
    commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestMutex.java
    commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestSemaphore.java

Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestMutex.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestMutex.java?rev=1095162&r1=1095161&r2=1095162&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestMutex.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestMutex.java
Tue Apr 19 18:34:09 2011
@@ -53,10 +53,13 @@ public class TestMutex extends Assert
         System.out.flush();
         m.acquire();
         s.acquire();
-        
+        System.out.println("[parent] Child attached.");
+        System.out.flush();        
         m.release();
         m.close();
         s.close();
+        System.out.println("[parent] Done.");
+        System.out.flush();
     }
 
     @Test(groups = { "mutex.child" })

Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestSemaphore.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestSemaphore.java?rev=1095162&r1=1095161&r2=1095162&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestSemaphore.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestSemaphore.java
Tue Apr 19 18:34:09 2011
@@ -49,10 +49,12 @@ public class TestSemaphore extends Asser
         System.out.println("[parent] Waiting for a child to attach");
         System.out.flush();
         s.acquire();
-        System.out.println("[parent] Done.");
+        System.out.println("[parent] Child attached.");
         System.out.flush();
         s.release();
         s.close();
+        System.out.println("[parent] Done.");
+        System.out.flush();
     }
 
     @Test(groups = { "semaphore.child" })



Mime
View raw message