mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
tests: Add an assertion to guard against unexpected flags
This should not change the behaviour of the test, unless the test's behaviour is changed in future. As spotted by cppcheck, which has impeccable taste and a flair for the unexpected.
This commit is contained in:
parent
c868d9879c
commit
ba874a8580
@ -240,6 +240,8 @@ get_expected_filename (const gchar *filename,
|
||||
expected = g_strconcat (f, ".expected", NULL);
|
||||
else if (flags == G_MARKUP_TREAT_CDATA_AS_TEXT)
|
||||
expected = g_strconcat (f, ".cdata-as-text", NULL);
|
||||
else
|
||||
g_assert_not_reached ();
|
||||
|
||||
g_free (f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user