summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-match.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-12 21:52:31 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-13 12:07:34 +0200
commit964bc0ad600f6d9fb90ed82f6a302988e843336d (patch)
tree67b22222fa9845325909b36041d465e2f9df6570 /src/libsystemd/sd-bus/test-bus-match.c
parent08d541ca06c75c8539206c60eba975fb3ecd6460 (diff)
downloadsystemd-964bc0ad600f6d9fb90ed82f6a302988e843336d.tar.gz
test: log when skipping tests in more cases
Follow-up for the previous commit.
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-match.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-match.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-match.c b/src/libsystemd/sd-bus/test-bus-match.c
index 2f1d057eb9..05b84d51c3 100644
--- a/src/libsystemd/sd-bus/test-bus-match.c
+++ b/src/libsystemd/sd-bus/test-bus-match.c
@@ -78,8 +78,10 @@ int main(int argc, char *argv[]) {
int r;
r = sd_bus_open_user(&bus);
- if (r < 0)
+ if (r < 0) {
+ log_info("Failed to connect to bus, skipping tests.");
return EXIT_TEST_SKIP;
+ }
assert_se(match_add(slots, &root, "arg2='wal\\'do',sender='foo',type='signal',interface='bar.x',", 1) >= 0);
assert_se(match_add(slots, &root, "arg2='wal\\'do2',sender='foo',type='signal',interface='bar.x',", 2) >= 0);