preload.lua 409 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 t = require('test.testutil')
  5. require('test.functional.ui.screen')
  6. if t.is_os('win') 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