robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Lewis RussellMerge pull request #38486 from lewis6991/testharnes9e80f63c30

master
485 B15 linesraw
1-- Modules loaded here will not be cleared and reloaded by the local harness.
2-- Keeping these preloaded preserves cross-file setup while still resetting
3-- non-helper modules between files.
4local t = require('test.testutil')
5require('test.functional.testnvim')()
6require('test.functional.ui.screen')
7
8local has_ffi, ffi = pcall(require, 'ffi')
9if t.is_os('win') and has_ffi then
10  ffi.cdef [[
11  typedef int errno_t;
12  errno_t _set_fmode(int mode);
13  ]]
14  ffi.C._set_fmode(0x8000)
15end