1
0
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:
Marco Trevisan (Treviño)
2023-01-17 19:12:55 +01:00
parent 03f5d0b060
commit 6a4f6c593c

@@ -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);