mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 18:37:50 +02:00
gsettings: Skip tests in the proper way
This will make TAP happier in reporting what's wrong
This commit is contained in:
@@ -798,7 +798,9 @@ test_l10n (void)
|
|||||||
str = NULL;
|
str = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_printerr ("warning: translation is not working... skipping test. ");
|
{
|
||||||
|
g_test_skip ("translation is not working");
|
||||||
|
}
|
||||||
|
|
||||||
g_setenv ("LC_MESSAGES", locale, TRUE);
|
g_setenv ("LC_MESSAGES", locale, TRUE);
|
||||||
setlocale (LC_MESSAGES, locale);
|
setlocale (LC_MESSAGES, locale);
|
||||||
@@ -843,7 +845,7 @@ test_l10n_context (void)
|
|||||||
if (g_str_equal (dgettext ("test", "\"Unnamed\""), "\"Unbenannt\""))
|
if (g_str_equal (dgettext ("test", "\"Unnamed\""), "\"Unbenannt\""))
|
||||||
settings_assert_cmpstr (settings, "backspace", ==, "Löschen");
|
settings_assert_cmpstr (settings, "backspace", ==, "Löschen");
|
||||||
else
|
else
|
||||||
g_printerr ("warning: translation is not working... skipping test. ");
|
g_test_skip ("translation is not working");
|
||||||
|
|
||||||
g_setenv ("LC_MESSAGES", locale, TRUE);
|
g_setenv ("LC_MESSAGES", locale, TRUE);
|
||||||
setlocale (LC_MESSAGES, locale);
|
setlocale (LC_MESSAGES, locale);
|
||||||
|
Reference in New Issue
Block a user