diff options
author | Simon McVittie <smcv@collabora.com> | 2017-07-19 14:41:35 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-07-28 11:24:20 +0100 |
commit | 636cccdef71ffc83eb38246d505b3c7ba9e4cfb4 (patch) | |
tree | f4637cddd4db4d4b2af67d6e69cdea168198f151 | |
parent | 9f81acc004dd79c12b496fbfa2fc04afabd6fecf (diff) | |
download | dbus-636cccdef71ffc83eb38246d505b3c7ba9e4cfb4.tar.gz |
Add a test-case for combining receive_type and send_destination
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
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/data/invalid-config-files/send-and-receive.conf | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index f3b70dcd..caaedf51 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 index 00000000..f5b1a313 --- /dev/null +++ b/test/data/invalid-config-files/send-and-receive.conf @@ -0,0 +1,6 @@ +<busconfig> + <listen>unix:path=/foo</listen> + <policy context="default"> + <allow receive_type="signal" send_destination="com.example.Bees"/> + </policy> +</busconfig> |