summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-match.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-05 19:14:58 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-05 19:14:58 +0100
commit9d6c7c821cbf6655ecde62d2e283a6c94021f781 (patch)
tree32dc7d9a0d04db6bde848a6dcd6e05e30f46bb27 /src/libsystemd-bus/test-bus-match.c
parent4686d1b6ee73f1e0cea25f621561b668aa2d6651 (diff)
bus: make use of assert_return() in all API calls that don't use it yet
Diffstat (limited to 'src/libsystemd-bus/test-bus-match.c')
-rw-r--r--src/libsystemd-bus/test-bus-match.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libsystemd-bus/test-bus-match.c b/src/libsystemd-bus/test-bus-match.c
index 8df491a60a..7d7c55247f 100644
--- a/src/libsystemd-bus/test-bus-match.c
+++ b/src/libsystemd-bus/test-bus-match.c
@@ -94,13 +94,13 @@ int main(int argc, char *argv[]) {
zero(root);
root.type = BUS_MATCH_ROOT;
- assert_se(match_add(&root, "arg2='wal\\'do',sender='foo',type='signal',interface='bar',", 1) >= 0);
- assert_se(match_add(&root, "arg2='wal\\'do2',sender='foo',type='signal',interface='bar',", 2) >= 0);
- assert_se(match_add(&root, "arg3='test',sender='foo',type='signal',interface='bar',", 3) >= 0);
- assert_se(match_add(&root, "arg3='test',sender='foo',type='method_call',interface='bar',", 4) >= 0);
+ assert_se(match_add(&root, "arg2='wal\\'do',sender='foo',type='signal',interface='bar.x',", 1) >= 0);
+ assert_se(match_add(&root, "arg2='wal\\'do2',sender='foo',type='signal',interface='bar.x',", 2) >= 0);
+ assert_se(match_add(&root, "arg3='test',sender='foo',type='signal',interface='bar.x',", 3) >= 0);
+ assert_se(match_add(&root, "arg3='test',sender='foo',type='method_call',interface='bar.x',", 4) >= 0);
assert_se(match_add(&root, "", 5) >= 0);
- assert_se(match_add(&root, "interface='quux'", 6) >= 0);
- assert_se(match_add(&root, "interface='bar'", 7) >= 0);
+ assert_se(match_add(&root, "interface='quux.x'", 6) >= 0);
+ assert_se(match_add(&root, "interface='bar.x'", 7) >= 0);
assert_se(match_add(&root, "member='waldo',path='/foo/bar'", 8) >= 0);
assert_se(match_add(&root, "path='/foo/bar'", 9) >= 0);
assert_se(match_add(&root, "path_namespace='/foo'", 10) >= 0);
@@ -111,7 +111,7 @@ int main(int argc, char *argv[]) {
bus_match_dump(&root, 0);
- assert_se(sd_bus_message_new_signal(NULL, "/foo/bar", "bar", "waldo", &m) >= 0);
+ assert_se(sd_bus_message_new_signal(NULL, "/foo/bar", "bar.x", "waldo", &m) >= 0);
assert_se(sd_bus_message_append(m, "ssss", "one", "two", "/prefix/three", "prefix.four") >= 0);
assert_se(bus_message_seal(m, 1) >= 0);
@@ -121,7 +121,7 @@ int main(int argc, char *argv[]) {
assert_se(match_remove(&root, "member='waldo',path='/foo/bar'", 8) > 0);
assert_se(match_remove(&root, "arg2path='/prefix/',member='waldo'", 13) > 0);
- assert_se(match_remove(&root, "interface='barxx'", 7) == 0);
+ assert_se(match_remove(&root, "interface='bar.xx'", 7) == 0);
bus_match_dump(&root, 0);