You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/21 12:34:22 UTC
svn commit: r806486 - in /commons/sandbox/runtime/trunk/src:
main/native/os/unix/smutex.c
test/org/apache/commons/runtime/TestSemaphore.java
Author: mturk
Date: Fri Aug 21 10:34:21 2009
New Revision: 806486
URL: http://svn.apache.org/viewvc?rev=806486&view=rev
Log:
SysV mutex is now combined with Posix mutex in pmutex.c
Removed:
commons/sandbox/runtime/trunk/src/main/native/os/unix/smutex.c
Modified:
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSemaphore.java
Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSemaphore.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSemaphore.java?rev=806486&r1=806485&r2=806486&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSemaphore.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSemaphore.java Fri Aug 21 10:34:21 2009
@@ -57,16 +57,15 @@
} catch (Throwable t) {
// Ignore
}
+ if (s < 0) {
+ // Remove and try to Create again
+ test006(0);
+ s = test001(0);
+ }
}
else {
s = test002(0);
}
- if (s < 0 && owner) {
- // Neither Create or Attach were sussesful
- // Remove and try Create again
- test006(0);
- s = test001(0);
- }
assertTrue("Invalid Semaphore", s > 0);
if (owner) {
// Wait until child attaches