From c02107ef4e0fa49e5e57bfc8fb4e2b83654e8c68 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 17 Sep 2015 23:23:25 +0200 Subject: tests: don't depend on set element order Pablo reported test failures because the order of returned set entries is not deterministic. This sorts set elements before comparision. Patrick suggested to move ordering into libnftnl (since we could f.e. also get duplicate entries due to how netlink dumps work), but thats a bit more work. Hence this quick workaround. Reported-by: Pablo Neira Ayuso Signed-off-by: Florian Westphal --- tests/regression/any/ct.t.payload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/regression/any/ct.t.payload') diff --git a/tests/regression/any/ct.t.payload b/tests/regression/any/ct.t.payload index 2e7c1ff7..2bebaccd 100644 --- a/tests/regression/any/ct.t.payload +++ b/tests/regression/any/ct.t.payload @@ -267,7 +267,7 @@ ip test-ip4 output # ct state . ct mark vmap { new . 0x12345678 : drop} map%d test-ip4 b map%d test-ip4 0 - element 00000008 12345678 : 0 [end] + element 00000008 12345678 : 0 [end] ip test-ip4 output [ ct load state => reg 1 ] [ ct load mark => reg 9 ] -- cgit v1.2.3