From 15ae5b930f827609f1254ea3b5c965d017dec830 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 3 Feb 2015 14:45:33 +0000 Subject: [PATCH 4/8] monitor regression test: verify that we lose previous match rules --- test/monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/monitor.c b/test/monitor.c index 74ff452..9dd3244 100644 --- a/test/monitor.c +++ b/test/monitor.c @@ -1060,6 +1060,12 @@ test_selective (Fixture *f, if (f->address == NULL) return; + /* Match rules added before becoming a monitor should be cleared: we + * shouldn't get them twice. */ + dbus_bus_add_match (f->monitor, + "eavesdrop='true',interface='com.example.Tedious'", &f->e); + test_assert_no_error (&f->e); + become_monitor (f); m = dbus_message_new_signal ("/foo", "com.example.Interesting", -- 2.1.4