From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115540 invoked by alias); 15 Sep 2015 22:52:38 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 115511 invoked by uid 48); 15 Sep 2015 22:52:35 -0000 From: "msebor at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/18969] New: multiple string test failures due to missing locale dependencies Date: Tue, 15 Sep 2015 22:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.22 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: msebor at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg00191.txt.bz2 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.