There is no timeout on line 42 .... 40 0 ipset create test bitmap:ip range 2.0.0.1-2.1.0.0 comment timeout 5 41 # Bitmap comment: Add multiple elements with default timeout 42 0 for x in `seq 1 255`; do echo "add test 2.0.0.$x comment \\\"text message $x\\\""; done | ipset restore 43 # Bitmap comment: Add multiple elements with zero timeout 44 0 for x in `seq 1 255`; do echo "add test 2.0.1.$x timeout 0 comment \\\"text message $x\\\""; done | ipset restore On Wed, Aug 12, 2015 at 2:56 PM, Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxxxxxx> wrote: > On Wed, 12 Aug 2015, Akshat Kakkar wrote: > >> Well ... quite a number of tests passed succesfully... but then some >> test have failed. >> partial o/p of 'make tests' is >> >> comment: Bitmap comment: create set with timeout: passed >> comment: Bitmap comment: Add multiple elements with default timeout: passed >> comment: Bitmap comment: Add multiple elements with zero timeout: passed >> comment: Bitmap comment: List set: passed >> comment: Bitmap comment: Check listing: passed >> comment: Sleep 5s so that entries can time out: passed >> comment: Bitmap comment: List set: passed >> comment: Bitmap comment: Check listing: --- .foo 2015-08-12 >> 12:14:03.475222428 +0530 >> +++ comment.t.list12 2015-06-25 14:49:08.000000000 +0530 >> @@ -1,9 +1,9 @@ >> Name: test >> Type: bitmap:ip >> Header: range 2.0.0.1-2.1.0.0 timeout x comment >> -Size in memory: 1056896 >> +Size in memory: 1056928 >> References: 0 >> -Number of entries: 255 >> +Number of entries: 510 >> Members: >> 2.0.1.1 timeout x comment "text message 1" >> 2.0.1.2 timeout x comment "text message 2" >> FAILED >> Failed test: diff -u -I 'Size in memory.*' .foo comment.t.list12 >> make: *** [tests] Error 1 > > According to the diff, none of the entries with 5s timeout value timed > out. Than may mean simply that the sleep/listing was faster than > anticipated. > > Please change the timeout value to 4 (s) in line 42 in comment.t and > re-run the test. Does it run successfully? > > Best regards, > Jozsef > - > E-mail : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx > PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt > Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences > H-1525 Budapest 114, POB. 49, Hungary -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html