summaryrefslogtreecommitdiff
path: root/tests/wallclock-reftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wallclock-reftest.c')
-rw-r--r--tests/wallclock-reftest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wallclock-reftest.c b/tests/wallclock-reftest.c
index fe71b5a5..3db9cf1d 100644
--- a/tests/wallclock-reftest.c
+++ b/tests/wallclock-reftest.c
@@ -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);