aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 3564f76442..c9885f73d0 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -68,14 +68,12 @@ local function cimport(...)
local body = nil
for _ = 1, 10 do
- local stream = Preprocess.preprocess_stream(unpack(paths))
- body = stream:read("*a")
- stream:close()
+ body = Preprocess.preprocess(unpack(paths))
if body ~= nil then break end
end
if body == nil then
- print("ERROR: helpers.lua: Preprocess.preprocess_stream():read() returned empty")
+ print("ERROR: helpers.lua: Preprocess.preprocess() returned empty")
end
-- format it (so that the lines are "unique" statements), also filter out