From patchwork Tue Sep 28 07:56:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 1533751 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HJX0H3h4Qz9t2G for ; Tue, 28 Sep 2021 17:57:01 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5B133857C52 for ; Tue, 28 Sep 2021 07:56:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 814993858C2C; Tue, 28 Sep 2021 07:56:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 814993858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: 2lNNX0knihA126wJHGdTvA1qJ4lNrFR8lZqhxIdQZEK+tUwKdiYfP2qKrkJoSA4leVHREU4cA0 wMowo5fcH4clsonAFydEtbtHEh3DT2uvNX8kJqDgTb3WaR/uIZNNSQH5fOUKLE7jtEpN+/UgXn UWcST1widShPp1swL+Up5xhWoHcIz5tHRe8AA/XgSTbtGq+ZwmJ1BqZTF1x/Imwt2VDSmS5GvM y66SYcGPm8lc7OVxJ/niNqjX9WJSq96XrnD7N8c7A4mmwvIRQUdr128BBEzRhR/Yq1aCdxi02O es1G0k9BL07HohZb+KaFbb0z X-IronPort-AV: E=Sophos;i="5.85,328,1624348800"; d="diff'?scan'208";a="66435711" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 27 Sep 2021 23:56:46 -0800 IronPort-SDR: WiVsqVLB+KH37BaZ69uiY8hcl0kH6a9H2ojTS8I6+ZFt8RtYWPoxksYEmbkGr+OECbgGU8L5zp s3/+GaerUcTlJZZ02FNMNT7bPcjj+DQFUIRR3fEceaQlMqM7eAqaRJ+GuyYPIp30a2v5DuJluv ajZ17ZBmlRU2SEtQ9Pvwc7gItZgYFWPZb7AZcFZoJhVaOfQ7VVhhAtPRwY16rxA2AiOmBrH47D 16GJ2MWqBiths7VdqfW7WWef6Nhjc99se9wN/zxfD0drcl4yF0LShHfltbR9FwUXPVIHEaNkvn 348= To: gcc-patches , fortran From: Tobias Burnus Subject: [committed] gfortran.dg/include_15.f90: Add dg-prune-output [PR102500] Message-ID: <73b57668-acde-818e-ab27-ba0766348b10@codesourcery.com> Date: Tue, 28 Sep 2021 09:56:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" It turned out that one warning output depended on details how the testsuite it run. Thus, just ignore that bit that did not always appear or not by using dg-prune-output. Those subtle differences in test runs which make a test fail or not fail, depending on how GCC's testsuite is run, make life less boring ... Committed as r12-3912-gce450af5087b95001b003184b8ecc2c9bbf65378. Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 commit ce450af5087b95001b003184b8ecc2c9bbf65378 Author: Tobias Burnus Date: Tue Sep 28 09:49:12 2021 +0200 gfortran.dg/include_15.f90: Add dg-prune-output [PR102500] gcc/testsuite/ PR fortran/102500 * gfortran.dg/include_15.f90: Add 'dg-prune-output' to prune -Wmissing-include-dirs output printed or not depending on how the testsuite is run. diff --git a/gcc/testsuite/gfortran.dg/include_15.f90 b/gcc/testsuite/gfortran.dg/include_15.f90 index 068dcef5826..18d91f6cd32 100644 --- a/gcc/testsuite/gfortran.dg/include_15.f90 +++ b/gcc/testsuite/gfortran.dg/include_15.f90 @@ -4,3 +4,6 @@ end ! { dg-warning " /fdaf/: No such file or directory" "" { target *-*-* } 0 } ! { dg-warning " bar: No such file or directory" "" { target *-*-* } 0 } ! { dg-warning " foo/bar: No such file or directory" "" { target *-*-* } 0 } + +! Depending how the testsuite is run, it may or may not print the following warning: +! { dg-prune-output "Warning: finclude: No such file or directory" }