]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: fix numgen case failed due to changes in libnftnl
authorLiping Zhang <liping.zhang@spreadtrum.com>
Thu, 15 Sep 2016 13:42:49 +0000 (21:42 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Sep 2016 07:34:06 +0000 (09:34 +0200)
commit739a2da1f442c447ffc8151c64fe197a4e58cd16
tree30ca6c53c94ac1bf4d5f87ab117943330c87b475
parent8b06baed7ddc614f544dd7c2e84de76f7d0e7086
tests: py: fix numgen case failed due to changes in libnftnl

In nftnl_expr_ng_snprintf_default, format "(%u)" was changed to
"mod %u", so numgen test case failed:
  ...
  '[ numgen reg 1 = inc(2) ]' mismatches '[ numgen reg 1 = inc mod 2 ]'
  ...
  ip/numgen.t: 3 unit tests, 3 error, 0 warning

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip/numgen.t.payload