unlock fails if file not locked

2006-08-10 Thread Neal Norwitz
This test was taken from the python test suite. It works on many different platforms and architecture's except cygwin's. I'm not entirely sure that cygwin is really wrong either though. The attached c program should print only a single message: lock failed in parent (expected) 13 However it

msync failure due to rounding up length (with test case and suggested fix)

2006-07-18 Thread Neal Norwitz
See winsup/cygwin/mmap.cc line 1355 in current CVS (msync function): len = roundup2 (len, pagesize); I verified my suspicion that roundup2() is causing Python's test suite to fail. When I stepped in the debugger and reset the len to its original value after calling roundup2() the test passed.

python test failures

2006-07-11 Thread Neal Norwitz
I'm a python developer and we are trying to get python built on cygwin passing the entire regression suite. It's pretty close already which is amazing, but I'm hoping we can get *all* the tests working. These tests currently work on about 10 different unix boxes and several windows boxes too. W