diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-09 13:24:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-13 09:16:11 -0300 |
commit | 10b01bd4529336bffc2c398ce43a171ed94aacc7 (patch) | |
tree | 62ba252dd57aec8ac577d211783010ab89850ca1 /string/Makefile | |
parent | e72b98e6f858583a3ef904e27c6fbd932bdc86c8 (diff) | |
download | glibc-10b01bd4529336bffc2c398ce43a171ed94aacc7.zip glibc-10b01bd4529336bffc2c398ce43a171ed94aacc7.tar.gz glibc-10b01bd4529336bffc2c398ce43a171ed94aacc7.tar.bz2 |
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.
Diffstat (limited to 'string/Makefile')
-rw-r--r-- | string/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/string/Makefile b/string/Makefile index 206c9b1..c5b8909 100644 --- a/string/Makefile +++ b/string/Makefile @@ -65,7 +65,14 @@ tests := tester inl-tester noinl-tester testcopy test-ffs \ test-endian-sign-conversion tst-memmove-overflow \ test-sig_np -tests-container += tst-strsignal tst-strerror +# Both tests require the .mo translation files generated by msgfmt. +tests-translation := tst-strsignal \ + tst-strerror + +tests-container += $(tests-translation) +ifeq ($(MSGFMT),:) +tests-unsupported += $(tests-translation) +endif # This test allocates a lot of memory and can run for a long time. xtests = tst-strcoll-overflow |