From f807e5c9175b2a453aa64aea1b2d00a887d011df Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 2 Feb 2026 13:37:29 +0800 Subject: [PATCH] test: improve check for N/A tests (#37667) The previous conditions don't handle the case where an entire file is N/A, which is the case for autocmd/signal_spec.lua on Windows. --- test/busted/outputHandlers/nvim.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua index c1a4c4842d..f4a3bcdad3 100644 --- a/test/busted/outputHandlers/nvim.lua +++ b/test/busted/outputHandlers/nvim.lua @@ -107,13 +107,13 @@ return function(options) local errorCount = 0 local naCheck = function(pending) - if pending.name:find(' N/A[: ]') or pending.name:find(' N/A$') then + if vim.list_contains(vim.split(pending.name, '[ :]'), 'N/A') then return true end if type(pending.message) ~= 'string' then return false end - if pending.message:find(' N/A[: ]') or pending.message:find(' N/A$') then + if vim.list_contains(vim.split(pending.message, '[ :]'), 'N/A') then return true end return false