mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
glib/tests: skip some tests if langinfo isn't available
The fallback win32 code doesn't seem to be localized. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
60e7430c80
commit
2761e13446
@ -1805,6 +1805,7 @@ test_modifiers (void)
|
||||
|
||||
oldlocale = g_strdup (setlocale (LC_ALL, NULL));
|
||||
setlocale (LC_ALL, "fa_IR.utf-8");
|
||||
#ifdef HAVE_LANGINFO_OUTDIGIT
|
||||
if (strstr (setlocale (LC_ALL, NULL), "fa_IR") != NULL)
|
||||
{
|
||||
TEST_PRINTF_TIME (23, 0, 0, "%OH", "\333\262\333\263"); /* '23' */
|
||||
@ -1818,6 +1819,9 @@ test_modifiers (void)
|
||||
}
|
||||
else
|
||||
g_test_skip ("locale fa_IR not available, skipping O modifier tests");
|
||||
#else
|
||||
g_test_skip ("langinfo not available, skipping O modifier tests");
|
||||
#endif
|
||||
setlocale (LC_ALL, oldlocale);
|
||||
g_free (oldlocale);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user