aboutsummaryrefslogtreecommitdiff
path: root/test/unit/os
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-30 14:41:34 +0800
committerGitHub <noreply@github.com>2023-09-30 14:41:34 +0800
commitdc6d0d2daf69e2fdadda81feb97906dbc962a239 (patch)
tree7cf93549ec3282e1f42baf89e97d7890daeb5d70 /test/unit/os
parentcf8b2c0e74fd5e723b0c15c2ce84e6900fd322d3 (diff)
downloadrneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.gz
rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.bz2
rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.zip
refactor: reorganize option header files (#25437)
- Move vimoption_T to option.h - option_defs.h is for option-related types - option_vars.h corresponds to Vim's option.h - option_defs.h and option_vars.h don't include each other
Diffstat (limited to 'test/unit/os')
-rw-r--r--test/unit/os/fs_spec.lua4
-rw-r--r--test/unit/os/shell_spec.lua2
2 files changed, 1 insertions, 5 deletions
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 3a40e97755..8f45d2b0c7 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -22,10 +22,6 @@ local endswith = helpers.endswith
local NODE_NORMAL = 0
local NODE_WRITABLE = 1
-cimport('./src/nvim/os/shell.h')
-cimport('./src/nvim/option_defs.h')
-cimport('./src/nvim/main.h')
-cimport('./src/nvim/fileio.h')
local fs = cimport('./src/nvim/os/os.h', './src/nvim/path.h')
cppimport('sys/stat.h')
cppimport('fcntl.h')
diff --git a/test/unit/os/shell_spec.lua b/test/unit/os/shell_spec.lua
index 29a2b78491..3fb1afed44 100644
--- a/test/unit/os/shell_spec.lua
+++ b/test/unit/os/shell_spec.lua
@@ -2,7 +2,7 @@ local helpers = require('test.unit.helpers')(after_each)
local itp = helpers.gen_itp(it)
local cimported = helpers.cimport(
'./src/nvim/os/shell.h',
- './src/nvim/option_defs.h',
+ './src/nvim/option_vars.h',
'./src/nvim/main.h',
'./src/nvim/memory.h'
)