test/data: Test impossible send_broadcast/send_destination pair
authorSimon McVittie <smcv@collabora.com>
Mon, 25 Sep 2017 12:37:57 +0000 (13:37 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 25 Sep 2017 12:37:57 +0000 (13:37 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/92853
Reviewed-by: Philip Withnall <withnall@endlessm.com>
test/Makefile.am
test/data/invalid-config-files/impossible-send.conf [new file with mode: 0644]

index 2003d35..5a025cf 100644 (file)
@@ -482,6 +482,7 @@ static_data = \
        data/invalid-config-files/circular-1.conf \
        data/invalid-config-files/circular-2.conf \
        data/invalid-config-files/circular-3.conf \
+       data/invalid-config-files/impossible-send.conf \
        data/invalid-config-files/not-well-formed.conf \
        data/invalid-config-files/truncated-file.conf \
        data/invalid-config-files/send-and-receive.conf \
diff --git a/test/data/invalid-config-files/impossible-send.conf b/test/data/invalid-config-files/impossible-send.conf
new file mode 100644 (file)
index 0000000..136d747
--- /dev/null
@@ -0,0 +1,6 @@
+<busconfig>
+  <listen>unix:path=/foo</listen>
+  <policy context="default">
+    <allow send_broadcast="true" send_destination="com.example.Bees"/>
+  </policy>
+</busconfig>