gsettings: Skip tests in the proper way

This will make TAP happier in reporting what's wrong
This commit is contained in:
Marco Trevisan (Treviño) 2023-01-17 19:12:55 +01:00
parent 03f5d0b060
commit 6a4f6c593c

View File

@ -798,7 +798,9 @@ test_l10n (void)
str = NULL;
}
else
g_printerr ("warning: translation is not working... skipping test. ");
{
g_test_skip ("translation is not working");
}
g_setenv ("LC_MESSAGES", locale, TRUE);
setlocale (LC_MESSAGES, locale);
@ -843,7 +845,7 @@ test_l10n_context (void)
if (g_str_equal (dgettext ("test", "\"Unnamed\""), "\"Unbenannt\""))
settings_assert_cmpstr (settings, "backspace", ==, "Löschen");
else
g_printerr ("warning: translation is not working... skipping test. ");
g_test_skip ("translation is not working");
g_setenv ("LC_MESSAGES", locale, TRUE);
setlocale (LC_MESSAGES, locale);