summaryrefslogtreecommitdiff
path: root/unit/test-iptables.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit/test-iptables.c')
-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;