commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r805536 - /commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java
Date Tue, 18 Aug 2009 18:44:13 GMT
Author: mturk
Date: Tue Aug 18 18:44:12 2009
New Revision: 805536

URL: http://svn.apache.org/viewvc?rev=805536&view=rev
Log:
Test Lock/TryLock - very rudiental

Modified:
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java?rev=805536&r1=805535&r2=805536&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Tue
Aug 18 18:44:12 2009
@@ -993,6 +993,26 @@
         assertEquals("Destroy Named Process Mutex", 0, rv);
     }
 
+    public void testPmutexLock()
+        throws Throwable
+    {
+        int sa = test072(0);
+        assertTrue("Named Process Mutex", sa > 0);
+        
+        int rv;
+
+        rv = test076(sa);
+        assertEquals("Process Mutex TryLock", 0, rv);
+        rv = test077(sa);
+        assertEquals("Process Mutex release", 0, rv);
+        rv = test075(sa);
+        assertEquals("Process Mutex Lock", 0, rv);
+        rv = test077(sa);
+        assertEquals("Process Mutex release", 0, rv);
+
+        rv = test073(sa);
+        assertEquals("Destroy Named Process Mutex", 0, rv);
+    }
 
 }
 



Mime
View raw message