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:
Christoph Reiter 2018-05-21 16:18:11 +02:00 committed by Christoph Reiter
parent dad754f5bc
commit f92d179f77

View File

@ -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);
} }