summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2020-09-23 19:57:03 +0200
committerMichael Albinus <michael.albinus@gmx.de>2020-09-23 19:57:03 +0200
commit441e8750198fc68e4b20281c3ee0d76fd8328839 (patch)
treeeedf2879cc7b60af1f1a565680de6b75481149f7 /test
parent3bfddaec3ac6e545350d30a6db80188537b845ad (diff)
downloademacs-441e8750198fc68e4b20281c3ee0d76fd8328839.tar.gz
* test/lisp/net/dbus-tests.el (dbus-test01-basic-types): Adapt test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/dbus-tests.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/lisp/net/dbus-tests.el b/test/lisp/net/dbus-tests.el
index 62ed3f2bfb4..2f20fcc1e67 100644
--- a/test/lisp/net/dbus-tests.el
+++ b/test/lisp/net/dbus-tests.el
@@ -265,12 +265,13 @@
(dbus-check-arguments :session dbus--test-service :double "string")
:type 'wrong-type-argument)
- ;; `:unix-fd'. Value range 0 .. 9.
+ ;; `:unix-fd'. UNIX file descriptors are transfered out-of-band.
+ ;; We do not support this, and so we cannot do much testing here for
+ ;; `:unix-fd' being an argument (which is an index to the file
+ ;; descriptor in the array of file descriptors that accompany the
+ ;; D-Bus message). Mainly testing, that values out of `:uint32'
+ ;; type range fail.
(should (dbus-check-arguments :session dbus--test-service :unix-fd 0))
- (should (dbus-check-arguments :session dbus--test-service :unix-fd 9))
- (should-error
- (dbus-check-arguments :session dbus--test-service :unix-fd 10)
- :type 'dbus-error)
(should-error
(dbus-check-arguments :session dbus--test-service :unix-fd -1)
:type 'args-out-of-range)