test: make preload of functional/testnvim.lua explicit (#35919)

Before functional/testnvim.lua was moved from functional/testutil.lua in
052498ed42, it was explicitly preloaded,
but now it is preloaded implicitly via functional/ui/screen.lua.

Also fix warnings about unused variables in other preload.lua files.
This commit is contained in:
zeertzjq
2025-09-26 09:05:07 +08:00
committed by GitHub
parent a9486fe7e1
commit a0a86fdc04
3 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
-- Modules loaded here will not be cleared and reloaded by Busted. -- Modules loaded here will not be cleared and reloaded by Busted.
-- Busted started doing this to help provide more isolation. See issue #62 -- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this. -- for more information about this.
local n = require('test.functional.testnvim') require('test.functional.testnvim')()

View File

@@ -2,6 +2,7 @@
-- Busted started doing this to help provide more isolation. See issue #62 -- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this. -- for more information about this.
local t = require('test.testutil') local t = require('test.testutil')
require('test.functional.testnvim')()
require('test.functional.ui.screen') require('test.functional.ui.screen')
local has_ffi, ffi = pcall(require, 'ffi') local has_ffi, ffi = pcall(require, 'ffi')

View File

@@ -1,6 +1,6 @@
-- Modules loaded here will not be cleared and reloaded by Busted. -- Modules loaded here will not be cleared and reloaded by Busted.
-- Busted started doing this to help provide more isolation. See issue #62 -- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this. -- for more information about this.
local ffi = require('ffi') require('ffi')
local t = require('test.unit.testutil') require('test.unit.testutil')
local preprocess = require('test.unit.preprocess') require('test.unit.preprocess')