From f863066af1c8b68287ca5b6ad7f91c775c008984 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 21 Feb 2013 17:42:26 +0100 Subject: [PATCH] test-iptables: Delete all rules in target0 --- unit/test-iptables.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.7.4