aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/main_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-03-18 00:16:23 +0300
committerZyX <kp-pav@yandex.ru>2017-03-19 14:13:21 +0300
commit3cd7bf31e2351eb2874f8431d290a3d36b0b075e (patch)
treec3757584a199cd2304e3c76f67c43e6d64d7a5ab /test/functional/core/main_spec.lua
parent0e9286a19ed51ba9a2d6bfd06432c90e36cad4bd (diff)
downloadrneovim-3cd7bf31e2351eb2874f8431d290a3d36b0b075e.tar.gz
rneovim-3cd7bf31e2351eb2874f8431d290a3d36b0b075e.tar.bz2
rneovim-3cd7bf31e2351eb2874f8431d290a3d36b0b075e.zip
tests: Fix repeated_popen_r usage, rename the function
Diffstat (limited to 'test/functional/core/main_spec.lua')
-rw-r--r--test/functional/core/main_spec.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua
index a374b4c040..cc781a59a1 100644
--- a/test/functional/core/main_spec.lua
+++ b/test/functional/core/main_spec.lua
@@ -9,7 +9,7 @@ local nvim_prog = helpers.nvim_prog
local write_file = helpers.write_file
local popen_w = global_helpers.popen_w
-local repeated_popen_r = global_helpers.repeated_popen_r
+local repeated_read_cmd = global_helpers.repeated_read_cmd
describe('Command-line option', function()
describe('-s', function()
@@ -48,10 +48,9 @@ describe('Command-line option', function()
eq(nil, lfs.attributes(fname))
eq(true, not not dollar_fname:find('%$%w+'))
write_file(dollar_fname, ':call setline(1, "100500")\n:wqall!\n')
- local pipe = repeated_popen_r(
+ local stdout = repeated_read_cmd(
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
fname)
- local stdout = pipe:read('*a')
eq('', stdout)
local attrs = lfs.attributes(fname)
eq(#('100500\n'), attrs.size)