File: 05-delay-the-set-with-timeout-resizing-test.patch

package info (click to toggle)
ipset 7.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,316 kB
  • sloc: ansic: 32,658; sh: 5,595; makefile: 251; awk: 3
file content (20 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Delay the set with timeout resizing test
 The test sometimes finish early and faster than 1 second, the condition
 fail with false-positive 
Author: Neutron Soutmun <neo.neutron@gmail.com>
Forwarded: not-needed 
Last-Update: 2014-04-04

Index: ipset/tests/resizet.sh
===================================================================
--- ipset.orig/tests/resizet.sh
+++ ipset/tests/resizet.sh
@@ -102,6 +102,8 @@ case "$2" in
     	done
     	;;
 esac
+
+sleep 1
 $ipset l test | grep ^$ip | while read x y z; do
     if [ $z -lt 10 -o $z -gt 100 ]; then
     	exit 1