diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-10-24 17:38:18 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:49:42 +0100 |
commit | 8d58012786b837380e6006d38580852d9506fbc8 (patch) | |
tree | 72679ca40af951652ddace9a7484f2dd560ef0f1 /test/functional/eval/system_spec.lua | |
parent | 7311fb7cadff49422a15d3a40d7014000c8f4385 (diff) | |
download | rneovim-8d58012786b837380e6006d38580852d9506fbc8.tar.gz rneovim-8d58012786b837380e6006d38580852d9506fbc8.tar.bz2 rneovim-8d58012786b837380e6006d38580852d9506fbc8.zip |
test: use unix fileformat to test NULs on systemlist
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r-- | test/functional/eval/system_spec.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 7e213e2156..96212bf538 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -442,11 +442,13 @@ describe('systemlist()', function() describe('with output containing NULs', function() local fname = 'Xtest' - before_each(create_file_with_nuls(fname)) + before_each(function() + command('set ff=unix') + create_file_with_nuls(fname)() + end) after_each(delete_file(fname)) it('replaces NULs by newline characters', function() - if helpers.pending_win32(pending) then return end eq({'part1\npart2\npart3'}, eval('systemlist("cat '..fname..'")')) end) end) |