Blame SOURCES/0062-tests-shell-Fix-bogus-testsuite-failure-with-100Hz.patch

4e0227
From e8300966510001e38f2b6530607bac2a93de5c2e Mon Sep 17 00:00:00 2001
4e0227
From: Phil Sutter <psutter@redhat.com>
4e0227
Date: Mon, 2 Aug 2021 14:35:08 +0200
4e0227
Subject: [PATCH] tests: shell: Fix bogus testsuite failure with 100Hz
4e0227
4e0227
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1919203
4e0227
Upstream Status: nftables commit c9c5b5f621c37
4e0227
4e0227
commit c9c5b5f621c37d17140dac682d211825ef321093
4e0227
Author: Phil Sutter <phil@nwl.cc>
4e0227
Date:   Mon Jul 26 15:27:32 2021 +0200
4e0227
4e0227
    tests: shell: Fix bogus testsuite failure with 100Hz
4e0227
4e0227
    On kernels with CONFIG_HZ=100, clock granularity does not allow tracking
4e0227
    timeouts in single digit ms range. Change sets/0031set_timeout_size_0 to
4e0227
    not expose this detail.
4e0227
4e0227
    Signed-off-by: Phil Sutter <phil@nwl.cc>
4e0227
    Acked-by: Florian Westphal <fw@strlen.de>
4e0227
---
4e0227
 tests/shell/testcases/sets/0031set_timeout_size_0 | 4 ++--
4e0227
 1 file changed, 2 insertions(+), 2 deletions(-)
4e0227
4e0227
diff --git a/tests/shell/testcases/sets/0031set_timeout_size_0 b/tests/shell/testcases/sets/0031set_timeout_size_0
4e0227
index 9edd5f6..796640d 100755
4e0227
--- a/tests/shell/testcases/sets/0031set_timeout_size_0
4e0227
+++ b/tests/shell/testcases/sets/0031set_timeout_size_0
4e0227
@@ -3,10 +3,10 @@
4e0227
 RULESET="add table x
4e0227
 add set x y { type ipv4_addr; size 128; timeout 30s; flags dynamic; }
4e0227
 add chain x test
4e0227
-add rule x test set update ip saddr timeout 1d2h3m4s8ms @y
4e0227
+add rule x test set update ip saddr timeout 1d2h3m4s10ms @y
4e0227
 add rule x test set update ip daddr timeout 100ms @y"
4e0227
 
4e0227
 set -e
4e0227
 $NFT -f - <<< "$RULESET"
4e0227
-$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s8ms }'
4e0227
+$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s10ms }'
4e0227
 $NFT list chain x test | grep -q 'update @y { ip daddr timeout 100ms }'
4e0227
-- 
4e0227
2.31.1
4e0227