From: Simon McVittie Date: Tue, 13 Sep 2022 14:12:02 +0000 (+0100) Subject: test-syntax: Exercise correctly- and incorrectly-nested structs, dicts X-Git-Tag: dbus-1.14.4~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd73d1ef1ba6ba4e55c07f5e65300bf40a94917f;p=thirdparty%2Fdbus.git test-syntax: Exercise correctly- and incorrectly-nested structs, dicts Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418 Signed-off-by: Simon McVittie (cherry picked from commit 67800ac5febc9f15d6c4f113c758797472842ff3) --- diff --git a/test/syntax.c b/test/syntax.c index 17fcba4e9..fbfc86729 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 };