preload.lua 413 B

123456789101112131415
  1. -- Modules loaded here will not be cleared and reloaded by Busted.
  2. -- Busted started doing this to help provide more isolation. See issue #62
  3. -- for more information about this.
  4. local helpers = require('test.functional.helpers')(nil)
  5. local iswin = helpers.iswin
  6. if iswin() then
  7. local ffi = require('ffi')
  8. ffi.cdef[[
  9. typedef int errno_t;
  10. errno_t _set_fmode(int mode);
  11. ]]
  12. ffi.C._set_fmode(0x8000)
  13. end