Commit 58eba765 authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

tests: unset language-related environment variables

This fixes the tests in environments where these variables have
been set, such as on developer's personal systems.
parent ca8fede7
Pipeline #61185 passed with stage
in 3 minutes and 17 seconds
...@@ -573,13 +573,18 @@ main (int argc, char **argv) ...@@ -573,13 +573,18 @@ main (int argc, char **argv)
const char *basedir; const char *basedir;
GFile *file; GFile *file;
/* unset environment variables that can interfere with our tests */
unsetenv("LANG");
unsetenv("LANGUAGE");
unsetenv("LC_ALL");
unsetenv("LC_TIME");
/* I don't want to fight fuzzy scaling algorithms in GPUs, /* I don't want to fight fuzzy scaling algorithms in GPUs,
* so unless you explicitly set it to something else, we * so unless you explicitly set it to something else, we
* will use Cairo's image surface. * will use Cairo's image surface.
*/ */
g_setenv ("GDK_RENDERING", "image", FALSE); g_setenv ("GDK_RENDERING", "image", FALSE);
setlocale (LC_ALL, "");
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment