2026-03-25 13:33:17 +00:00
|
|
|
-- Modules loaded here will not be cleared and reloaded by the local harness.
|
|
|
|
|
-- Keeping these preloaded preserves cross-file setup while still resetting
|
|
|
|
|
-- non-helper modules between files.
|
2024-04-20 17:44:13 +02:00
|
|
|
local t = require('test.testutil')
|
2025-09-26 09:05:07 +08:00
|
|
|
require('test.functional.testnvim')()
|
2022-12-29 07:20:42 +08:00
|
|
|
require('test.functional.ui.screen')
|
2019-09-11 13:47:23 +02:00
|
|
|
|
2025-08-07 11:36:21 +02:00
|
|
|
local has_ffi, ffi = pcall(require, 'ffi')
|
|
|
|
|
if t.is_os('win') and has_ffi then
|
2019-09-11 13:47:23 +02:00
|
|
|
ffi.cdef [[
|
|
|
|
|
typedef int errno_t;
|
|
|
|
|
errno_t _set_fmode(int mode);
|
|
|
|
|
]]
|
|
|
|
|
ffi.C._set_fmode(0x8000)
|
|
|
|
|
end
|