diff options
author | Simon McVittie <smcv@collabora.com> | 2022-09-13 15:12:02 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-10-05 10:41:03 +0100 |
commit | fd73d1ef1ba6ba4e55c07f5e65300bf40a94917f (patch) | |
tree | b2eece09cf1c0a65dbe098186bd02802a59b3979 | |
parent | 3e53a785dee8d1432156188a2c4260e4cbc78c4d (diff) | |
download | dbus-fd73d1ef1ba6ba4e55c07f5e65300bf40a94917f.tar.gz |
test-syntax: Exercise correctly- and incorrectly-nested structs, dicts
Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 67800ac5febc9f15d6c4f113c758797472842ff3)
-rw-r--r-- | test/syntax.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/syntax.c b/test/syntax.c index 17fcba4e..fbfc8672 100644 --- a/test/syntax.c +++ b/test/syntax.c @@ -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 }; |