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: 33635 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