* tests: more gracefully deal with the case where there's no en_US.utf8 locale

This commit is contained in:
djcb
2012-03-08 00:11:31 +02:00
parent 0d3f1887da
commit 7fd81cc154
4 changed files with 86 additions and 43 deletions

View File

@ -754,7 +754,8 @@ main (int argc, char *argv[])
int rv;
g_test_init (&argc, &argv, NULL);
setenv ("LC_ALL", "en_US.utf8", 1);
if (!set_en_us_utf8_locale())
return 0; /* don't error out... */
g_test_add_func ("/mu-cmd/test-mu-index", test_mu_index);