summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/check-expect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/unit-tests/check-expect.lua')
-rw-r--r--usr.bin/make/unit-tests/check-expect.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/make/unit-tests/check-expect.lua b/usr.bin/make/unit-tests/check-expect.lua
index 2aaf31f9a6d..44c867dd321 100644
--- a/usr.bin/make/unit-tests/check-expect.lua
+++ b/usr.bin/make/unit-tests/check-expect.lua
@@ -1,5 +1,5 @@
#! /usr/bin/lua
--- $NetBSD: check-expect.lua,v 1.1 2022/01/15 12:35:18 rillig Exp $
+-- $NetBSD: check-expect.lua,v 1.2 2022/01/29 00:52:53 rillig Exp $
--[[
@@ -82,6 +82,9 @@ local function check_mk(mk_fname)
mk_fname, mk_lineno, exp_fname, prev_expect_line + 1, text)
end
end
+ if mk_line:match("^#%s*expect%-reset$") then
+ prev_expect_line = 0
+ end
---@param text string
for offset, text in mk_line:gmatch("#%s*expect([+%-]%d+):%s*(.*)") do