bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Silent test failures when no French, Japanese, Chinese locales insta


From: Bruno Haible
Subject: Re: Silent test failures when no French, Japanese, Chinese locales installed
Date: Fri, 16 Nov 2018 00:04:36 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-138-generic; KDE/5.18.0; x86_64; ; )

Hi Richard,

> After upgrading to Fedora 29, the glibc-langpack-fr locale is no
> longer installed by default.  This causes many tests to fail silently:
> 
> ./gnulib/tests/test-suite.log:FAIL: test-btowc1.sh
> ./gnulib/tests/test-suite.log:FAIL: test-btowc2.sh
> ./gnulib/tests/test-suite.log:FAIL: test-c-strcase.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbrtowc1.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbrtowc2.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbrtowc3.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbrtowc4.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbsrtowcs1.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbsrtowcs2.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbsrtowcs3.sh
> ./gnulib/tests/test-suite.log:FAIL: test-mbsrtowcs4.sh
> ./gnulib/tests/test-suite.log:FAIL: test-setlocale1.sh
> ./gnulib/tests/test-suite.log:FAIL: test-wcrtomb.sh
> 
> The failures are completely silent.  It seems as if about
> 6 months ago it used to print an error message:
> 
>   Skipping test: no traditional french locale is installed
> 
> But for some reason that is no longer printed:
> 
>   $ LC_ALL=fr_FR ./test-btowc 1
>   $ echo $?
>   1

I cannot reproduce this. Just installed a Fedora 29, configured and
ran a gnulib testdir created through
$ ./gnulib-tool --create-testdir --dir=../testdir-posix --with-tests 
--single-configure `./posix-modules`
and all tests pass, including these that you listed.

Can you provide these infos?

$ yum list --installed | grep glibc-langpack-fr

Expected: empty

$ locale -a | grep ^fr_FR

Expected:
fr_FR
address@hidden
fr_FR.iso88591
address@hidden
fr_FR.utf8

$ grep LOCALE_FR config.status

S["LOCALE_FR_UTF8"]="fr_FR.UTF-8"
S["LOCALE_FR"]="fr_FR"

$ ldd test-btowc

Expected:
        linux-vdso.so.1
        libc.so.6 => /lib64/libc.so.6
        /lib64/ld-linux-x86-64.so.2

$ LC_ALL=fr_FR strace ./test-btowc 1

$ LC_ALL=fr_FR ltrace ./test-btowc 1

And of course the GCC command line options and relevant environment
variables that you used during the configure step.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]