[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Disable test that relies on Linuxy assumptions
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv1689/lib/mixminion
Modified Files:
test.py
Log Message:
Disable test that relies on Linuxy assumptions
Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- test.py 13 Feb 2003 10:56:40 -0000 1.87
+++ test.py 14 Feb 2003 01:59:57 -0000 1.88
@@ -1,5 +1,5 @@
# Copyright 2002-2003 Nick Mathewson. See LICENSE for licensing information.
-# $Id$
+x1# $Id$
"""mixminion.tests
@@ -490,22 +490,26 @@
LF2.release()
LF1.acquire(blocking=1)
- # Now try a blocking lock.
- released=[0]
- def threadBody(LF2=LF2,released=released):
- LF2.acquire("LF2",blocking=1)
- if not released[0]:
- released[0] = 'BAD'
- else:
- released[0] = 'GOOD'
+ # XXXX004 reenable this once we figure out how to do so
+ # happily on *BSD. (The issue is that a blocking
+ # flock seems to block _all_ the threads in this
+ # process, not just this one.)
+## # Now try a blocking lock.
+## released=[0]
+## def threadBody(LF2=LF2,released=released):
+## LF2.acquire("LF2",blocking=1)
+## if not released[0]:
+## released[0] = 'BAD'
+## else:
+## released[0] = 'GOOD'
- t = threading.Thread(None, threadBody)
- t.start()
- time.sleep(.1)
- released[0] = 1
- LF1.release()
- t.join()
- self.assertEquals("GOOD", released[0])
+## t = threading.Thread(None, threadBody)
+## t.start()
+## time.sleep(.1)
+## released[0] = 1
+## LF1.release()
+## t.join()
+## self.assertEquals("GOOD", released[0])
def _intervalEq(self, a, *others):
eq = self.assertEquals