summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-09-30 18:06:10 +0200
committerPhil Sutter <phil@nwl.cc>2022-10-05 18:42:01 +0200
commitde043bbf2b78cad83a639e27c75263aa478e8cc4 (patch)
tree3bffe0535da5019ffed50df804339e11744451f2
parent9cdb52d655608e92f101cb56562e4756a47abd81 (diff)
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")
-rw-r--r--extensions/libxt_IDLETIMER.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_IDLETIMER.t b/extensions/libxt_IDLETIMER.t
index e8f306d2..3345d5be 100644
--- a/extensions/libxt_IDLETIMER.t
+++ b/extensions/libxt_IDLETIMER.t
@@ -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