Skip to contentSkip to conversation

tests: IDLETIMER.t: Fix syntax, support for restore input

PATCH New Phil Sutter 1 participant 1 message Oct 5, 2022 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests: IDLETIMER.t: Fix syntax, support for restore input

Expected output was wrong in the last OK test, probably defeating rule search check. Also use a different label, otherwise the kernel will reject the second idletimer with same label but different type if both rules are added at once.

Fixes 85b9ec8615428 ("extensions: IDLETIMER: Add alarm timer option")
---
 extensions/libxt_IDLETIMER.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
extensions/libxt_IDLETIMER.t +1 -1
index e8f306d2462c7..3345d5bef9e38 100644
@@ -2,4 +2,4 @@
 -j IDLETIMER --timeout;;FAIL
 -j IDLETIMER --timeout 42;;FAIL
 -j IDLETIMER --timeout 42 --label foo;=;OK
--j IDLETIMER --timeout 42 --label foo --alarm;;OK
+-j IDLETIMER --timeout 42 --label bar --alarm;=;OK
Signature · 1 line
2.34.1