Commit e1ac6e46 authored by Bastien Nocera's avatar Bastien Nocera

tests: Check that setting the locale worked

parent 4fa3982b
Pipeline #54670 passed with stage
in 2 minutes and 33 seconds
......@@ -438,13 +438,14 @@ test_ui_file (GFile *file,
GtkStyleProvider *provider;
GnomeWallClock *clock;
GDateTime *datetime;
char *str;
char *str, *set_locale;
ui_file = g_file_get_path (file);
locale = get_locale_for_file (ui_file);
g_assert (locale);
setlocale (LC_ALL, locale);
set_locale = setlocale (LC_ALL, locale);
g_assert_cmpstr (set_locale, ==, locale);
clock = gnome_wall_clock_new();
datetime = g_date_time_new_local (2014, 5, 28, 23, 59, 59);
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