Armin Rigo committed 5e2a8b1

Found out that we can fix the problem with "macro=True" to ensure
that the function call is always preprocessed by cpp.

  • Participants
  • Parent commits b47f464

Comments (0)

Files changed (2)


         os_lseek = self.llexternal(funcname,
                                    [rffi.INT, rffi.LONGLONG, rffi.INT],
-                                   rffi.LONGLONG)
+                                   rffi.LONGLONG, macro=True)
         def lseek_llimpl(fd, pos, how):


     raises(OSError, f, fd)
 def test_os_lseek():
-    if sys.maxint == 2**31-1 and not sys.platform.startswith('win'):
-        # cannot reliably test lseek() in this mode, because the lseek()
-        # that we get is the one that returns only a 32-bit integer
-        py.test.skip("cannot test lseek on 32-bit here")
-    #
     fname = str(udir.join('os_test.txt'))
     fd =, os.O_RDWR|os.O_CREAT, 0777)
     assert fd >= 0