summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-22 20:26:58 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-22 20:26:58 +0100
commit766c580959336be16f7c724b158f8e8fbaba2e9a (patch)
tree3e31e4139a7172837953bcfdaf8c437f16350c77 /src/libsystemd/sd-bus/test-bus-kernel.c
parentca7b42c81652c342288a3e0a10abd885c66ac5b2 (diff)
bus: add sd_bus_process_priority() to support prioq mode of kdbus
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-kernel.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-kernel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-kernel.c b/src/libsystemd/sd-bus/test-bus-kernel.c
index 0fab88021d..30cc313af4 100644
--- a/src/libsystemd/sd-bus/test-bus-kernel.c
+++ b/src/libsystemd/sd-bus/test-bus-kernel.c
@@ -110,6 +110,9 @@ int main(int argc, char *argv[]) {
r = sd_bus_try_close(b);
assert_se(r == -EBUSY);
+ r = sd_bus_process_priority(b, -10, &m);
+ assert_se(r == -ENOMSG);
+
r = sd_bus_process(b, &m);
assert_se(r > 0);
assert_se(m);