]> granicus.if.org Git - python/commitdiff
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
authordoko@ubuntu.com <doko@ubuntu.com>
Sat, 3 Aug 2013 14:12:33 +0000 (16:12 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Sat, 3 Aug 2013 14:12:33 +0000 (16:12 +0200)
Lib/test/test_fcntl.py
Misc/NEWS

index 09cb047298e8d359de9b478aaf01239f9ca7c547..e2a1b374cddc44e66bba227ecff3665ebf72ef39 100644 (file)
@@ -35,6 +35,8 @@ def get_lockdata():
             pid_t = 'l'
         lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
                                fcntl.F_WRLCK, 0)
+    elif sys.platform.startswith('gnukfreebsd'):
+        lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
     elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
         lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
     elif sys.platform in ['os2emx']:
index bd856962e047e68f53cf7f9ef0bd2091612e1d57..27f97b07678dcfa667d12110a28d2b4ed69ef095 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -230,6 +230,8 @@ IDLE
 Tests
 -----
 
+- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
+
 - Issue #18396: Fix spurious test failure in test_signal on Windows when
   faulthandler is enabled (Patch by Jeremy Kloth)