mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 15:55:36 +00:00
test: include stderr in EOF failure message
This commit is contained in:
@@ -333,9 +333,9 @@ end
|
||||
function M.expect_exit(fn_or_timeout, ...)
|
||||
local eof_err_msg = 'EOF was received from Nvim. Likely the Nvim process crashed.'
|
||||
if type(fn_or_timeout) == 'function' then
|
||||
eq(eof_err_msg, t.pcall_err(fn_or_timeout, ...))
|
||||
t.matches(eof_err_msg, t.pcall_err(fn_or_timeout, ...))
|
||||
else
|
||||
eq(
|
||||
t.matches(
|
||||
eof_err_msg,
|
||||
t.pcall_err(function(timeout, fn, ...)
|
||||
fn(...)
|
||||
|
||||
Reference in New Issue
Block a user