From: Phil Sutter Date: Fri, 30 Sep 2022 16:06:10 +0000 (+0200) Subject: tests: IDLETIMER.t: Fix syntax, support for restore input X-Git-Tag: v1.8.9~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de043bbf2b78cad83a639e27c75263aa478e8cc4;p=thirdparty%2Fiptables.git 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") --- 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