From f92d179f778e80eb69098041e79bf13677f8bb07 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 21 May 2018 16:18:11 +0200 Subject: [PATCH] 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 --- glib/tests/strfuncs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c index 2d035b1e3..d974ad436 100644 --- a/glib/tests/strfuncs.c +++ b/glib/tests/strfuncs.c @@ -1337,7 +1337,6 @@ test_strerror (void) GHashTable *strs; gint i; const gchar *str, *unknown_str; - GHashTableIter iter; setlocale (LC_ALL, "C"); @@ -1354,10 +1353,6 @@ test_strerror (void) 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); }