[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Cygwin inherits some broken windows filesystem behavior...
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv17215/lib/mixminion
Modified Files:
test.py
Log Message:
Cygwin inherits some broken windows filesystem behavior; testing for correctness is doomed
Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -d -r1.190 -r1.191
--- test.py 6 Mar 2004 00:33:09 -0000 1.190
+++ test.py 6 Mar 2004 05:33:55 -0000 1.191
@@ -587,7 +587,7 @@
self.assertRaises(LockfileLocked, LF2.acquire, blocking=0)
LF1.release()
LF2.acquire("LF2",1)
- if not ON_WIN32:
+ if not ON_WINDOWS:
self.assertEquals("LF2", readFile(fn))
self.assertRaises(LockfileLocked, LF1.acquire, blocking=0)
@@ -3481,7 +3481,7 @@
return st[stat.ST_MODE]&0777, st[stat.ST_UID], os.path.isdir(f)
# Now we test a directory we don't own...
- if not ON_WIN32 and os.getuid() == 0:
+ if not ON_WINDOWS and os.getuid() == 0:
# If we're root, we can play with chown!
# We don't own the directory
os.chown(subdir, 1, 1)
@@ -3491,7 +3491,7 @@
os.chown(noia, 1, 1)
self.failUnlessRaises(MixFatalError, checkPrivateDir, subdir)
os.chown(noia, 0, os.getgid())
- elif not ON_WIN32:
+ elif not ON_WINDOWS:
# We're not root. We can't reliably find or make a directory
# that's non-root and non-us. Let's just make sure we don't
# own temp.