]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test-syntax: Exercise correctly- and incorrectly-nested structs, dicts
authorSimon McVittie <smcv@collabora.com>
Tue, 13 Sep 2022 14:12:02 +0000 (15:12 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 5 Oct 2022 09:41:03 +0000 (10:41 +0100)
Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 67800ac5febc9f15d6c4f113c758797472842ff3)

test/syntax.c

index 17fcba4e9c00de7a6df8895dce29b34bffc35b20..fbfc86729795cb4746d263093bc69a6357d089d8 100644 (file)
@@ -155,12 +155,22 @@ const char * const invalid_bus_names[] = {
 const char * const valid_signatures[] = {
     "",
     "a{sv}",
+    "a{s(i)}",
+    "a(sa{ii})",
     NULL
 };
 
 const char * const invalid_signatures[] = {
     "a",
     "a{s_}",
+    "a{s(i}",
+    "a{s(i})",
+    "a{s(i)",
+    "a{s(i})",
+    "a(sa{ii)",
+    "a(sa{ii)}",
+    ")",
+    "}",
     NULL
 };