This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/18969] New: multiple string test failures due to missing locale dependencies


https://sourceware.org/bugzilla/show_bug.cgi?id=18969

            Bug ID: 18969
           Summary: multiple string test failures due to missing locale
                    dependencies
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: minor
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: msebor at redhat dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

Created attachment 8611
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8611&action=edit
Proposed patch tested on powerpc64le.

After glibc has been built but before 'make check' has been invoked, running
'make check subdirs=string' causes four string tests to fail that otherwise
succeed.  The failures can also be reproduced by removing the contents of the
localedata directory and invoking make check as shown below.  The cause of the
failures is a missing dependency of the string makefile on the locales used by
string tests.

In addition, while three of the four tests produce output that makes the reason
for their failures clear by printing the names of the locales they couldn't
set, string/tst-strxfrm2 prints the less helpful "setlocale failed."

The attached patch fixes both problems by a) adding the missing dependency on
gen-locales.mk to string/Makefile and setting the LOCALES variable to the names
of the prerequisite locales, and b) printing the name of the failed locale in
tst-strxfrm2.

$ rm -rf localedata/* string/test-*.out; nice make subdirs=string -k check
...
FAIL: string/test-strcasecmp
FAIL: string/test-strncasecmp
FAIL: string/tst-strxfrm
FAIL: string/tst-strxfrm2
Summary of test results:
      4 FAIL
     55 PASS
make[1]: *** [tests] Error 1
make[1]: Target `check' not remade because of errors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]