mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
tests/strfuncs: drop some redundant test code
The loop was testing that all strings in the hash table are valid utf-8, but the loop filling the hash table is already doing that. https://bugzilla.gnome.org/show_bug.cgi?id=795569
This commit is contained in:
parent
dad754f5bc
commit
f92d179f77
@ -1337,7 +1337,6 @@ test_strerror (void)
|
|||||||
GHashTable *strs;
|
GHashTable *strs;
|
||||||
gint i;
|
gint i;
|
||||||
const gchar *str, *unknown_str;
|
const gchar *str, *unknown_str;
|
||||||
GHashTableIter iter;
|
|
||||||
|
|
||||||
setlocale (LC_ALL, "C");
|
setlocale (LC_ALL, "C");
|
||||||
|
|
||||||
@ -1354,10 +1353,6 @@ test_strerror (void)
|
|||||||
g_hash_table_add (strs, (char *)str);
|
g_hash_table_add (strs, (char *)str);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_hash_table_iter_init (&iter, strs);
|
|
||||||
while (g_hash_table_iter_next (&iter, (gpointer *)&str, NULL))
|
|
||||||
g_assert (g_utf8_validate (str, -1, NULL));
|
|
||||||
|
|
||||||
g_hash_table_unref (strs);
|
g_hash_table_unref (strs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user