string: Make tst-strerror/tst-strsignal unsupported if msgfmt is not installed
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 9 Jul 2020 16:24:04 +0000 (13:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 13 Jul 2020 12:16:11 +0000 (09:16 -0300)
commit10b01bd4529336bffc2c398ce43a171ed94aacc7
tree62ba252dd57aec8ac577d211783010ab89850ca1
parente72b98e6f858583a3ef904e27c6fbd932bdc86c8
string: Make tst-strerror/tst-strsignal unsupported if msgfmt is not installed

Without msgfmt libc.mo files are not generated and its loading failure
is silent ignored with xsetlocale.

Also unset LANGUAGE environment variable to avoid it taking precedence
when loading the message catalog.  Although not strictly required
(since the test is issued with test-container and it sets a strict
environment variable) it follows other tests that deal with
translation.

Checked on x86_64-linux-gnu.
string/Makefile
string/tst-strerror.c
string/tst-strsignal.c