Add a test-case for combining receive_type and send_destination
authorSimon McVittie <smcv@collabora.com>
Wed, 19 Jul 2017 13:41:35 +0000 (14:41 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 28 Jul 2017 10:24:20 +0000 (11:24 +0100)
Until the previous commit, this would have worked. Now it correctly fails
with "send and receive attributes cannot be combined".

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Thiago Macieira <thiago@kde.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92853

test/Makefile.am
test/data/invalid-config-files/send-and-receive.conf [new file with mode: 0644]

index f3b70dc..caaedf5 100644 (file)
@@ -481,6 +481,7 @@ static_data = \
        data/invalid-config-files/circular-3.conf \
        data/invalid-config-files/not-well-formed.conf \
        data/invalid-config-files/truncated-file.conf \
+       data/invalid-config-files/send-and-receive.conf \
        data/invalid-messages/array-of-nil.message \
        data/invalid-messages/array-with-mixed-types.message \
        data/invalid-messages/bad-boolean-array.message \
diff --git a/test/data/invalid-config-files/send-and-receive.conf b/test/data/invalid-config-files/send-and-receive.conf
new file mode 100644 (file)
index 0000000..f5b1a31
--- /dev/null
@@ -0,0 +1,6 @@
+<busconfig>
+  <listen>unix:path=/foo</listen>
+  <policy context="default">
+    <allow receive_type="signal" send_destination="com.example.Bees"/>
+  </policy>
+</busconfig>