From 2151ddbd73a78fcecc992f58f036b8f765a9113e Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 3 Jan 2017 16:25:04 +0300 Subject: unittest: Move nil checks to Gcc:preprocess --- test/unit/helpers.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'test/unit/helpers.lua') 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 -- cgit