From patchwork Tue Jul 9 15:42:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1129898 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-103555-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="E+iU4/80"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45jmmJ511Xz9s7T for ; Wed, 10 Jul 2019 01:42:40 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=BkIJ//gVDeVLuJYthK2Bg/086M+Hl ZlF7W3bzqO8UtEfGgdvxs5NrvPZXGW9t2ajirI4mOwepiT1+b57ahClj2d9nGywD N/hzQqfkoqgRxaRbVUr9uB/Eb7ckJSirWs0zYEGyfHexE7aq4BUL21IfDAy2Qkz+ 4r2+/kjdsfb+os= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=wcIJQFDxx9xkp4iKcx2nsSmysNs=; b=E+i U4/80dL7RwED7H8f259bzM9mGbjMFvy10KmR5DhUe3f/KAvvT5oqFrMlSFAY7ZDJ M+jz2E2Jx6WqPnw3ecL46CS2A0AGkBxQBbBtT/7yLr91nakoWTLkOkiv55JDiAC/ wH+juYKTGb2/IQXnBzPyI4eqDPYcvGhCNin7Kvhk= Received: (qmail 105512 invoked by alias); 9 Jul 2019 15:42:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 105504 invoked by uid 89); 9 Jul 2019 15:42:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: No locales in test-in-container? Date: Tue, 09 Jul 2019 17:42:30 +0200 Message-ID: <87r26zgqop.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 I'm doing this: And have this locale call: if (setlocale (LC_ALL, "en_US.UTF-8") == NULL) FAIL_EXIT1 ("setlocale: %m"); But this results in this failure: error: tst-wfile-fclose-exit.c:45: setlocale: No such file or directory This also happens with a clean build. Apparently, there are no locales in testroot.pristine. Is this expected? Thanks, Florian diff --git a/libio/Makefile b/libio/Makefile index 6e594b8ec5..3a4fb2f10e 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -68,9 +68,9 @@ tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \ tst-sprintf-ub tst-sprintf-chk-ub tst-bz24051 tst-bz24153 \ tst-wfile-sync tst-wfile-gconv -# This test tests interaction with the gconv cache. Setting -# GCONV_CACHE during out-of-container testing disables the cache. -tests-container += tst-wfile-ascii +# These tests interact with the gconv cache. Setting GCONV_CACHE +# during out-of-container testing disables the cache. +tests-container += tst-wfile-ascii tst-wfile-fclose-exit tests-internal = tst-vtables tst-vtables-interposed tst-readline @@ -230,6 +230,7 @@ $(objpfx)tst-widetext.out: $(gen-locales) $(objpfx)tst_wprintf2.out: $(gen-locales) $(objpfx)tst-wfile-sync.out: $(gen-locales) $(objpfx)tst-wfile-gconv.out: $(gen-locales) +$(objpfx)tst-wfile-fclose-exit.out: $(gen-locales) endif $(objpfx)test-freopen.out: test-freopen.sh $(objpfx)test-freopen