mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
Bug 620496 - schema compiler: reject invalid paths
The GSettings schema compiler was accepting any string as a path. It is probably quite a common mistake to suspect that '/apps/foo' is a valid path name when this will cause all sorts of trouble later. Check for this case and report the error.
This commit is contained in:
@@ -57,6 +57,7 @@ static const SchemaTest tests[] = {
|
||||
{ "default-not-in-choices", NULL, "*<default> contains string not in <choices>*" },
|
||||
{ "array-default-not-in-choices", NULL, "*<default> contains string not in <choices>*" },
|
||||
{ "bad-key", NULL, "*invalid name*" },
|
||||
{ "invalid-path", NULL, "*must begin and end with a slash*" },
|
||||
{ "bad-key", "--allow-any-name", NULL },
|
||||
{ "bad-key2", NULL, "*invalid name*" },
|
||||
{ "bad-key2", "--allow-any-name", NULL },
|
||||
|
Reference in New Issue
Block a user