]> granicus.if.org Git - ipset/commitdiff
Correct a test: number of entries may be outdated
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 23 Mar 2017 20:28:11 +0000 (21:28 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 23 Mar 2017 21:10:08 +0000 (22:10 +0100)
At listing, timed out entries are not listed but the number of entries
counter is updated at garbage collection.

tests/comment.t

index 46ba6c2f91c0f80eb008ad098b52a620d261f947..b12609b23caeb98bb9886485a5f26becef643f08 100644 (file)
@@ -51,7 +51,7 @@
 # Bitmap comment: List set
 0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo
 # Bitmap comment: Check listing
-0 diff -u -I 'Size in memory.*' .foo comment.t.list12
+0 diff -u -I 'Size in memory.*' -I 'Number of entries' .foo comment.t.list12
 # Bitmap comment: Flush set
 0 ipset flush test
 # Bitmap comment: Delete test set