From: Daniel Wagner Date: Thu, 21 Feb 2013 16:42:26 +0000 (+0100) Subject: test-iptables: Delete all rules in target0 X-Git-Tag: 1.12~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f863066af1c8b68287ca5b6ad7f91c775c008984;p=platform%2Fupstream%2Fconnman.git test-iptables: Delete all rules in target0 --- diff --git a/unit/test-iptables.c b/unit/test-iptables.c index 77fa50a..15fef8d 100644 --- a/unit/test-iptables.c +++ b/unit/test-iptables.c @@ -205,6 +205,20 @@ static void test_iptables_target0(void) err = __connman_iptables_commit("filter"); g_assert(err == 0); + + err = __connman_iptables_delete("filter", "INPUT", + "-m mark --mark 1"); + g_assert(err == 0); + + err = __connman_iptables_commit("filter"); + g_assert(err == 0); + + err = __connman_iptables_delete("filter", "INPUT", + "-m mark --mark 2"); + g_assert(err == 0); + + err = __connman_iptables_commit("filter"); + g_assert(err == 0); } struct connman_notifier *nat_notifier;