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

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