From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 7C13B3851C0D for ; Thu, 25 Jun 2020 20:41:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7C13B3851C0D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Sandra_Loosemore@mentor.com IronPort-SDR: c/DMy7HYz4S7YKxKL3vqLajreGLcIcPxrPzytE2Lq/370hVEqa1oMhq6ErI1hwcrNHyuVyoOh2 FNnC76gLVBmGaphSTM+z6YOQTrbsOvCVQGrVp9zARBL+lAxbrMFOdrMQCD+SkWtb4sEbg5dSm8 ShuDGM9mGsjKRo7wAdKzzbG4SKcGPrvVWEF7fnOf7Gk/kYDp7Cn6roK45a4O+TrsJYqGRjraqB ClpgxZVS853NmbseVpRqNvzFG2g0Jbs1mTOd+6ZY81Rg4Ok6Xuter9Hd3/rxVyerX5RgHY9XSp UoU= X-IronPort-AV: E=Sophos;i="5.75,280,1589270400"; d="scan'208";a="50327865" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 25 Jun 2020 12:41:28 -0800 IronPort-SDR: N0R8ZNBIBDq9xTGzyVlAHdOJhjf86ZlKUW6uUyO3h8X1QqCjsYkY+vjbHKs6TBWphGme+zw3Ld eWHw9490VM0g0EOF9rwp9NWXNPw6lgEy/6wQuMew2/curjYflHb2HA+4UZPI4Qjl15OJ/VhnYP FEWRgxzUI2HoEQGB/UyFLOb+PobB1JQh079jdfva5Pfy+KJ27lVqWMXhyod11KEXKeye8zepdy oq71+ggr/lHaSBIdZzy8B/3WmJwd27THQX7SpJNN7IKpYhDRedZ+qvjNDfYme051XqVGlqoj7g 3+k= To: "gdb-patches@sourceware.org" From: Sandra Loosemore Subject: [patch] gdb/testsuite: Skip directory tests in gdb.base/info_sources.exp on remote host Message-ID: <0e4e07f8-c673-ffa0-cac5-407ef4f129a3@codesourcery.com> Date: Thu, 25 Jun 2020 14:41:21 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------F3CF354FCA6BEAEDB4CDA0F7" Content-Language: en-US X-ClientProxiedBy: svr-orw-mbx-04.mgc.mentorg.com (147.34.90.204) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) X-Spam-Status: No, score=-10.2 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2020 20:41:31 -0000 --------------F3CF354FCA6BEAEDB4CDA0F7 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Here's another patch for a remote-host testing issue I've run across. OK to commit? -Sandra --------------F3CF354FCA6BEAEDB4CDA0F7 Content-Type: text/x-patch; charset="UTF-8"; name="info_sources.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="info_sources.patch" commit e08464126c11c710a11d94e4cc6a8b06593465be Author: Sandra Loosemore Date: Thu Jun 25 13:22:11 2020 -0700 Skip directory tests in gdb.base/info_sources.exp on remote host When testing on a remote host, source files from build are copied to an arbitrary location on host. Tests that try to pattern-match host pathnames against directory prefixes on build don't generally work. 2020-06-25 Sandra Loosemore gdb/testsuite/ * gdb.base/info_sources.exp: Skip directory match tests on remote hosts. diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ad2448..3434aa1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-06-25 Sandra Loosemore + + * gdb.base/info_sources.exp: Skip directory match tests on + remote hosts. + 2020-06-25 Andrew Burgess * gdb.arch/riscv-tdesc-regs.exp: New test cases. diff --git a/gdb/testsuite/gdb.base/info_sources.exp b/gdb/testsuite/gdb.base/info_sources.exp index fa643c5..8bcedfa 100644 --- a/gdb/testsuite/gdb.base/info_sources.exp +++ b/gdb/testsuite/gdb.base/info_sources.exp @@ -71,7 +71,9 @@ test_info_sources "--" 1 1 # List both files with regexp matching anywhere in the filenames: test_info_sources "info_sources" 1 1 -test_info_sources "gdb.base" 1 1 +if { ! [is_remote host] } { + test_info_sources "gdb.base" 1 1 +} # List both files with regexp matching the filename basenames, # using various parts of the -basename option: @@ -88,8 +90,10 @@ test_info_sources "-b base" 0 1 # List the files with dirname matching regexp, # using various part of the -dirname option: -test_info_sources "-d base" 1 1 -test_info_sources "-dirname base" 1 1 +if { ! [is_remote host] } { + test_info_sources "-d base" 1 1 + test_info_sources "-dirname base" 1 1 +} # Test non matching regexp, with option terminator: test_info_sources "-b -- -d" 0 0 --------------F3CF354FCA6BEAEDB4CDA0F7--