From 1ea7541f657e64c843b97b25ec75dd388ee916cc Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 18 Mar 2017 17:49:47 +0300 Subject: 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. --- test/functional/core/main_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index cc781a59a1..59969538fa 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -51,9 +51,9 @@ describe('Command-line option', function() local stdout = repeated_read_cmd( nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname, fname) - eq('', stdout) local attrs = lfs.attributes(fname) eq(#('100500\n'), attrs.size) + eq('', stdout) end) end) end) -- cgit