aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-11-26 10:18:01 +0100
committerGitHub <noreply@github.com>2017-11-26 10:18:01 +0100
commit207b7ca4bc16d52641eaa5244eef25a0dba91dbc (patch)
treea3422eceb6eeaa692a7baf7171dfa5fd81ad86b2 /test/helpers.lua
parentb57d9a4ff08fc1ef8db79d422b441b792493ff4e (diff)
parent0de019b6a65c6dd5141b7e002343df3689065ce7 (diff)
downloadrneovim-207b7ca4bc16d52641eaa5244eef25a0dba91dbc.tar.gz
rneovim-207b7ca4bc16d52641eaa5244eef25a0dba91dbc.tar.bz2
rneovim-207b7ca4bc16d52641eaa5244eef25a0dba91dbc.zip
Merge pull request #6844 from bfredl/channel
channels: support buffered output and bytes sockets/stdio
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua17
1 files changed, 2 insertions, 15 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 260f10002e..123dd111ee 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -225,21 +225,8 @@ local function check_cores(app, force)
local esigns = ('='):rep(len / 2)
out:write(('\n%s Core file %s %s\n'):format(esigns, core, esigns))
out:flush()
- local pipe = io.popen(
- db_cmd:gsub('%$_NVIM_TEST_APP', app):gsub('%$_NVIM_TEST_CORE', core)
- .. ' 2>&1', 'r')
- if pipe then
- local bt = pipe:read('*a')
- if bt then
- out:write(bt)
- out:write('\n')
- else
- out:write('Failed to read from the pipe\n')
- end
- else
- out:write('Failed to create pipe\n')
- end
- out:flush()
+ os.execute(db_cmd:gsub('%$_NVIM_TEST_APP', app):gsub('%$_NVIM_TEST_CORE', core) .. ' 2>&1')
+ out:write('\n')
found_cores = found_cores + 1
os.remove(core)
end