mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
functests: Alter the order of checks
Check whether `repeated_read_cmd` returned nil and did not actually run nvim or it did, but still returned nil for whatever reason.
This commit is contained in:
@@ -51,9 +51,9 @@ describe('Command-line option', function()
|
|||||||
local stdout = repeated_read_cmd(
|
local stdout = repeated_read_cmd(
|
||||||
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
|
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
|
||||||
fname)
|
fname)
|
||||||
eq('', stdout)
|
|
||||||
local attrs = lfs.attributes(fname)
|
local attrs = lfs.attributes(fname)
|
||||||
eq(#('100500\n'), attrs.size)
|
eq(#('100500\n'), attrs.size)
|
||||||
|
eq('', stdout)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user