Author ned.deily
Recipients koobs, ned.deily
Date 2018-05-26.19:52:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527364371.11.0.682650639539.issue33655@psf.upfronthosting.co.za>
In-reply-to
Content
Seen on some of the various FreeBSD buildbots:

======================================================================
ERROR: test_posix_fallocate (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.7.koobs-freebsd-current/build/Lib/test/test_posix.py", line 342, in test_posix_fallocate
    posix.posix_fallocate(fd, 0, 10)
OSError: [Errno 22] Invalid argument
----------------------------------------------------------------------

As discussed in Issue31106 msg312453 and successors, the failure is due to posix_fallocate not being implemented on ZFS and the difficulty of determining in a platform-independent way what kind of file system a given file resides on.  The test already ignores EINVAL ("Invalid argument") errors when run on Solaris-type platforms due to the common use of ZFS there.  In lieu of a more precise test for fs type, we should also ignore EINVAL errors in this test when run on *BSD platforms.  Also, rather than silently ignoring the error, it may be better to use a SkipTest message.
History
Date User Action Args
2018-05-26 19:52:51ned.deilysetrecipients: + ned.deily, koobs
2018-05-26 19:52:51ned.deilysetmessageid: <1527364371.11.0.682650639539.issue33655@psf.upfronthosting.co.za>
2018-05-26 19:52:51ned.deilylinkissue33655 messages
2018-05-26 19:52:50ned.deilycreate