summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-02-21 17:42:26 +0100
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-22 12:42:39 +0200
commitf863066af1c8b68287ca5b6ad7f91c775c008984 (patch)
tree8fec1bdb4d4a7a54e6af6d3de1a099fabd1af430
parent499d0573f96511e72d1d217402d42b924de05e78 (diff)
downloadconnman-f863066af1c8b68287ca5b6ad7f91c775c008984.tar.gz
connman-f863066af1c8b68287ca5b6ad7f91c775c008984.tar.bz2
connman-f863066af1c8b68287ca5b6ad7f91c775c008984.zip
test-iptables: Delete all rules in target0
-rw-r--r--unit/test-iptables.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/unit/test-iptables.c b/unit/test-iptables.c
index 77fa50a9..15fef8d4 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;