summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-kernel-bloom.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-06-10 20:14:56 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-06-10 20:22:40 +0200
commit26589352b2c7c067da0917ce95d5b31657ee7446 (patch)
treed51f0e6a9cf4a06c7b0a796be1e810179521ae55 /src/libsystemd/sd-bus/test-bus-kernel-bloom.c
parent744dccdd361afff8220221c1d385cf54aeb823e0 (diff)
bus: we now support path_namespace=/
Our bloom-filters support root-path matching. Make sure we properly add the path_namespace= tag.
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-kernel-bloom.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-kernel-bloom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-kernel-bloom.c b/src/libsystemd/sd-bus/test-bus-kernel-bloom.c
index 01f784f8c2..90eb1f2a33 100644
--- a/src/libsystemd/sd-bus/test-bus-kernel-bloom.c
+++ b/src/libsystemd/sd-bus/test-bus-kernel-bloom.c
@@ -123,6 +123,7 @@ int main(int argc, char *argv[]) {
test_one("/foo/bar/waldo", "waldo.com", "Piep", false, "foobar", "path_namespace='/foo'", true);
test_one("/foo/bar/waldo", "waldo.com", "Piep", false, "foobar", "path_namespace='/'", true);
test_one("/foo/bar/waldo", "waldo.com", "Piep", false, "foobar", "path_namespace='/quux'", false);
+ test_one("/", "waldo.com", "Piep", false, "foobar", "path_namespace='/'", true);
test_one("/foo/bar/waldo", "waldo.com", "Piep", false, "foobar", "path='/foo/bar/waldo/'", false);
test_one("/foo/bar/waldo", "waldo.com", "Piep", false, "foobar", "path='/foo/'", false);