Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 test suite fails on sparc solaris 2.6

closed-fixed
None
5
2006-10-20
2004-02-25
Paul Rodger
No

Hello,

I get the following message during test_archivemail.py

Is this expected on sparc solaris 2.6?

FAIL: exclusive_lock/unlock should create/delete an
advisory lock

----------------------------------------------------------------------

Traceback (most recent call last):

File "test_archivemail.py", line 163, in
testExclusiveLock

self.assertRaises(IOError, fcntl.flock,
file.fileno(), lock_nb)

File
"/dist/sparc/solaris/Python/lib/python2.3/unittest.py",
line 295, in failUnlessRaises
raise self.failureException, excName

AssertionError: IOError

----------------------------------------------------------------------

Ran 54 tests in 1477.271s

FAILED (failures=1)

Discussion

    • assigned_to: nobody --> nikosch
     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=1594781

    Hi,

    short version: this is fixed in subversion.

    Longer version: archivemail uses fcntl.flock() for locking.
    The corresponding flock(2) system call is not POSIX-
    compliant but a BSD thing. While it seems that most Unices
    provide the flock() syscall nowadays, they might emulate it
    with fcntl(2), which is a very different deer. Apparently
    Solaris does so, and the testsuite didn't anticipate that.