diff --git a/glib/tests/utf8-validate.c b/glib/tests/utf8-validate.c index 5fc37a3a3..41d19adb5 100644 --- a/glib/tests/utf8-validate.c +++ b/glib/tests/utf8-validate.c @@ -32,7 +32,7 @@ typedef struct { gboolean valid; } Test; -Test test[] = { +static Test global_test[] = { /* some tests to check max_len handling */ /* length 1 */ { "abcde", -1, 5, TRUE }, @@ -364,10 +364,10 @@ main (int argc, char *argv[]) g_test_init (&argc, &argv, NULL); - for (i = 0; test[i].text; i++) + for (i = 0; global_test[i].text; i++) { path = g_strdup_printf ("/utf8/validate/%d", i); - g_test_add_data_func (path, &test[i], do_test); + g_test_add_data_func (path, &global_test[i], do_test); g_free (path); }