aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-09-05 17:38:14 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-11-25 09:37:00 +0100
commit753d0091e8f5d3358eeb2f53288b5b07a8f13a7f (patch)
tree16ad2f925a1ea1e6e7e105293d8b2b004a607ee7
parent8540b5e4adcf5175b6f73261736a66fecae81f28 (diff)
downloadrneovim-753d0091e8f5d3358eeb2f53288b5b07a8f13a7f.tar.gz
rneovim-753d0091e8f5d3358eeb2f53288b5b07a8f13a7f.tar.bz2
rneovim-753d0091e8f5d3358eeb2f53288b5b07a8f13a7f.zip
core dumps: don't use pipe, it does not work
-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