summaryrefslogtreecommitdiff
path: root/test/test-standalone.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-09-04 21:05:15 +0100
committerSimon McVittie <smcv@collabora.com>2022-09-06 14:52:12 +0100
commitdce0ae8f9d4b88c9b49b580d39c629fc689392c0 (patch)
treeb270649c0a56fb6e2668366f5c8d8a6d685295d3 /test/test-standalone.py
parentf4d8c9f45dff584aec8df0993e1716390d57508c (diff)
downloaddbus-python-dce0ae8f9d4b88c9b49b580d39c629fc689392c0.tar.gz
test: Exercise handling of invalid/negative Unix fdswip/smcv/invalid-unix-fd
Reproduces: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/test-standalone.py')
-rwxr-xr-xtest/test-standalone.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-standalone.py b/test/test-standalone.py
index 157ec4a..c091228 100755
--- a/test/test-standalone.py
+++ b/test/test-standalone.py
@@ -560,6 +560,9 @@ class TestMessageMarshalling(unittest.TestCase):
finally:
os.close(plain_fd)
+ with self.assertRaises(ValueError):
+ types.UnixFd(-1)
+
class TestMatching(unittest.TestCase):
def setUp(self):
from _dbus_bindings import SignalMessage