Skip to content

Commit

Permalink
test/functional/preload.lua: _set_fmode for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 11, 2019
1 parent 45a4e68 commit ab3ba72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/functional/preload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
-- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this.
local helpers = require('test.functional.helpers')(nil)
local iswin = helpers.iswin

if iswin() then
local ffi = require('ffi')
ffi.cdef[[
typedef int errno_t;
errno_t _set_fmode(int mode);
]]
ffi.C._set_fmode(0x8000)
end

0 comments on commit ab3ba72

Please sign in to comment.