mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 12:14:06 +02: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:
@@ -1805,6 +1805,7 @@ test_modifiers (void)
|
|||||||
|
|
||||||
oldlocale = g_strdup (setlocale (LC_ALL, NULL));
|
oldlocale = g_strdup (setlocale (LC_ALL, NULL));
|
||||||
setlocale (LC_ALL, "fa_IR.utf-8");
|
setlocale (LC_ALL, "fa_IR.utf-8");
|
||||||
|
#ifdef HAVE_LANGINFO_OUTDIGIT
|
||||||
if (strstr (setlocale (LC_ALL, NULL), "fa_IR") != NULL)
|
if (strstr (setlocale (LC_ALL, NULL), "fa_IR") != NULL)
|
||||||
{
|
{
|
||||||
TEST_PRINTF_TIME (23, 0, 0, "%OH", "\333\262\333\263"); /* '23' */
|
TEST_PRINTF_TIME (23, 0, 0, "%OH", "\333\262\333\263"); /* '23' */
|
||||||
@@ -1818,6 +1819,9 @@ test_modifiers (void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_test_skip ("locale fa_IR not available, skipping O modifier tests");
|
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);
|
setlocale (LC_ALL, oldlocale);
|
||||||
g_free (oldlocale);
|
g_free (oldlocale);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user