diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-03 16:25:04 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-01-03 22:54:54 +0300 |
commit | 2151ddbd73a78fcecc992f58f036b8f765a9113e (patch) | |
tree | 47d08b3d9ce20546c8789888d1a151311352d041 /test/unit/helpers.lua | |
parent | 0d7b779cab198c89b70bf9d1e6d42cffc3f28f50 (diff) | |
download | rneovim-2151ddbd73a78fcecc992f58f036b8f765a9113e.tar.gz rneovim-2151ddbd73a78fcecc992f58f036b8f765a9113e.tar.bz2 rneovim-2151ddbd73a78fcecc992f58f036b8f765a9113e.zip |
unittest: Move nil checks to Gcc:preprocess
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index abbdecacc9..1e97fc9793 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -69,14 +69,7 @@ local function cimport(...) end local body = nil - for _ = 1, 10 do - body, previous_defines = Preprocess.preprocess(previous_defines, unpack(paths)) - if body ~= nil then break end - end - - if body == nil then - print("ERROR: helpers.lua: Preprocess.preprocess() returned empty") - end + body, previous_defines = Preprocess.preprocess(previous_defines, unpack(paths)) -- format it (so that the lines are "unique" statements), also filter out -- Objective-C blocks |