test: Skip tests in offline/utf82locale if a locale is not available
commitcee3800c56d544dd6203c1d2de98a14e6d6328d8
authorPetr Písař <petr.pisar@atlas.cz>
Mon, 22 Apr 2019 15:27:39 +0000 (22 17:27 +0200)
committerPetr Písař <petr.pisar@atlas.cz>
Mon, 22 Apr 2019 15:34:34 +0000 (22 17:34 +0200)
treea904ee90b21627378a9d247588f0b69be889bf1b
parentfafe559f5e24a04905f3a1dc567c16ac40699fb2
test: Skip tests in offline/utf82locale if a locale is not available

To test a conversion to a UTF-8 locale, we need to have a UTF-8 locale
supported by the standard library. We tried en_US.UTF-8 that is widely
available and then cs_CZ.UTF-8. However, some distributions started to
remove en_US.UTF-8 from their build infrastructure and use C.UTF-8
instead.

This patch skips the inapplicable tests.
test/offline/utf82locale.c