diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-04 11:54:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-04 11:54:11 +0100 |
commit | af828f22575c8591a176bd9d85ee07f87ba8b911 (patch) | |
tree | c4692cf380b69e8d3b6065d1f8d2855b6e4a50dd /test/unit/formatc.lua | |
parent | c56411ed87fe560149b68e67f63916f829affd1b (diff) | |
parent | 937b6fac8fecb701895b2c4151a864861aaf03f4 (diff) | |
download | rneovim-af828f22575c8591a176bd9d85ee07f87ba8b911.tar.gz rneovim-af828f22575c8591a176bd9d85ee07f87ba8b911.tar.bz2 rneovim-af828f22575c8591a176bd9d85ee07f87ba8b911.zip |
Merge #5864 from ZyX-I/fix-5857
unittest: Allow multiple indirect includes
Diffstat (limited to 'test/unit/formatc.lua')
-rw-r--r-- | test/unit/formatc.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua index 00637e0b8d..e288081960 100644 --- a/test/unit/formatc.lua +++ b/test/unit/formatc.lua @@ -219,13 +219,7 @@ local function standalone(...) -- luacheck: ignore Preprocess.add_to_include_path('./../../build/include') Preprocess.add_to_include_path('./../../.deps/usr/include') - local input = Preprocess.preprocess_stream(arg[1]) - local raw = input:read('*all') - input:close() - - if raw == nil then - print("ERROR: Preprocess.preprocess_stream():read() returned empty") - end + local raw = Preprocess.preprocess('', arg[1]) local formatted if #arg == 2 and arg[2] == 'no' then |