aboutsummaryrefslogtreecommitdiff
path: root/test/unit/formatc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/formatc.lua')
-rw-r--r--test/unit/formatc.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua
index 00637e0b8d..9b47a318f0 100644
--- a/test/unit/formatc.lua
+++ b/test/unit/formatc.lua
@@ -219,12 +219,10 @@ 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()
+ local raw = Preprocess.preprocess(arg[1])
if raw == nil then
- print("ERROR: Preprocess.preprocess_stream():read() returned empty")
+ print("ERROR: Preprocess.preprocess() returned empty")
end
local formatted