aboutsummaryrefslogtreecommitdiff
path: root/test/unit/vterm_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-11-27 11:17:42 -0500
committerJames McCoy <jamessan@jamessan.com>2024-12-02 21:49:14 -0500
commit7a367c6967d8bd1e386e391216a41b15bde5b28a (patch)
tree9da8d84499e0f9f933cbfb042318490e0f2892c3 /test/unit/vterm_spec.lua
parent3d3a99e69cda365cae9ad65831712301807a772b (diff)
downloadrneovim-7a367c6967d8bd1e386e391216a41b15bde5b28a.tar.gz
rneovim-7a367c6967d8bd1e386e391216a41b15bde5b28a.tar.bz2
rneovim-7a367c6967d8bd1e386e391216a41b15bde5b28a.zip
test(vterm): move test functions into vterm_test fixture
In order to run unittests with a release build, we need the test functions to be accessible when NDEBUG is defined. Moving the functions into the test fixture ensures they are available and only available for use by the unit tests.
Diffstat (limited to 'test/unit/vterm_spec.lua')
-rw-r--r--test/unit/vterm_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/vterm_spec.lua b/test/unit/vterm_spec.lua
index 4ea5d9c29a..a05579b4ff 100644
--- a/test/unit/vterm_spec.lua
+++ b/test/unit/vterm_spec.lua
@@ -79,7 +79,11 @@ local bit = require('bit')
--- @field vterm_state_set_callbacks function
--- @field vterm_state_set_selection_callbacks function
--- @field vterm_state_set_unrecognised_fallbacks function
-local vterm = t.cimport('./src/vterm/vterm.h', './src/vterm/vterm_internal.h')
+local vterm = t.cimport(
+ './src/vterm/vterm.h',
+ './src/vterm/vterm_internal.h',
+ './test/unit/fixtures/vterm_test.h'
+)
--- @return string
local function read_rm()