From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4D83A1F5AE for ; Wed, 9 Jun 2021 07:23:19 +0000 (UTC) Received: from localhost ([::1]:44940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqsYX-0001cp-RQ for normalperson@yhbt.net; Wed, 09 Jun 2021 03:23:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqsYV-0001cX-C2 for bug-gnulib@gnu.org; Wed, 09 Jun 2021 03:23:15 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:38587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqsYT-00009W-3m for bug-gnulib@gnu.org; Wed, 09 Jun 2021 03:23:15 -0400 Received: from [192.168.101.10] ([93.218.97.202]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRSZX-1lf0250u1t-00NNhL; Wed, 09 Jun 2021 09:23:08 +0200 Subject: Re: warnings in unit tests To: Bruno Haible , noloader@gmail.com, bug-gnulib@gnu.org References: <15897619.AQZsorJ5YP@omega> <4537093.ULRrrf3QbG@omega> From: Bernhard Voelker Message-ID: <95d95bca-0f45-9a93-634f-47bb536d2923@bernhard-voelker.de> Date: Wed, 9 Jun 2021 09:23:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <4537093.ULRrrf3QbG@omega> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Q1BdFgM73MNBCpJaQCoDFfbyox9g5id4Ca67h6vW8+XHU++b4KG qdZ824ogxVASa/RybFTopcCnL/WrnNuZbY4GKcq0oUG/vKg0Ok4ux20/vzsmHQOTxEBanLJ G4aoKUXeR5SdGKxJsTWGKaKkGliUW8QFFz1gLvqO3YOCzZZ/0rtcrQuMQ0+RiZEMfHuy8rz wW9CbiJy59PEQKOhGewqA== X-UI-Out-Filterresults: notjunk:1;V03:K0:vvyESFd6jjg=:ix44orkiIbhnPVVu0v4Muc 7Ofj1g4Az5ReFu6AgS+Bd27ll6DnfuEkZDQSxCfVhMl73QzYCLFnamdIGH9Pibv2gea3AU0y0 /eLfLoDSaO3sXj9iUL0Q1aJ1p35VVDnqAkG5zUOXOQGrFs4UcAXg3kSEhaCAvyDdu0jndskIe 4ZbtN7QnSJKtURvCylba3PokcE8Bjiq8ItbAUSH1/UrnZiy+aauFjxdqX30AQ4Qn7+WCnAp7A qX0edfxeKJNiqehdvYgoCnjrkXUmkuEbU0o1Owalhk2tdCHtMKsBBdNSV4t75QbJHOtEgGoE5 QaH54qTfD7mbZJaaXgiBELQlqHsBv/Eaj1Nljh7n6sgIKT2fV42yj7R0y02qJi5fSXcTY0uVK xjgcCG+/vPbNz/BkMMgVFvg2nQ+fcdtXP4bhzC3VXu9bdEUQFAWY8xFZOruAHWeOYxLND8DnI x8wN3fFyK556CTkiPYuTFDQPdbK68Nua9+3nX028YjOOoTZxU3J4u1yvjqISWAS5LoQrvkgXu 3cOU7aQ+AylMskCFTp2Uxs= Received-SPF: none client-ip=217.72.192.74; envelope-from=mail@bernhard-voelker.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 6/8/21 12:57 PM, Bruno Haible wrote: > The difference between lib/ and tests/ is that code in lib/ goes into > the binaries delivered by the packages, and therefore if a package > maintainer makes an effort to silence a warning, we will consider > their patch. Whereas for tests, as I said, it is too much > of an effort/cost to do so. One little aspect of the tests code is that people might look (also) there to learn how to use a certain gnulib module, and then copy/paste the code from there into their projects. That's at least true for the good test cases, surely not for those provoking errors. This means it may be worthwhile to have at least the good test cases in a warning- free shape (which I think it most often already is). Have a nice day, Berny