From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 339493858C83 for ; Sun, 23 Apr 2023 19:36:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 339493858C83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.99,220,1677571200"; d="scan'208";a="3274786" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 23 Apr 2023 11:36:21 -0800 IronPort-SDR: 5faq/ZCLbNl9chKqPTJafan4xB+fV0pvIn0D5Lv1Jhby6GS+SRK25HqwpEnUVBmaZK5yHg+HCC /p76xO2QQBe1xe+RtIEHUcWe0IqbtVVE4wxKTqbbm70Q0cIAmTyhclTP08KgvVpQZPCSyqYCkN IUMn936EzUrRi9CkNY8STDSw1HyyhB6v2W5BUuKsB+MG/DweOMpEyS5crJPHByqwiqUex5Ov0n 3E3b4MdFR4piQXtWry618/cRuY5I4ZhtYf1zmoKgT6X9GKFZk3feA68INUoiC6BqWSAdBJAPfM ixw= From: Sandra Loosemore To: CC: Subject: [PATCH V2 4/5] gdb/testsuite: Disable some tests that are broken on remote Windows host Date: Sun, 23 Apr 2023 13:36:05 -0600 Message-ID: <20230423193606.576453-1-sandra@codesourcery.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) To svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: These testcases assume host==build or that the remote host has a Posix shell to run commands in. Don't try to run them if that's not the case. --- gdb/testsuite/gdb.base/bad-file.exp | 3 +++ gdb/testsuite/gdb.base/early-init-file.exp | 3 +++ gdb/testsuite/gdb.base/empty-host-env-vars.exp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/gdb/testsuite/gdb.base/bad-file.exp b/gdb/testsuite/gdb.base/bad-file.exp index 5d8dfee8fea..5e050411f95 100644 --- a/gdb/testsuite/gdb.base/bad-file.exp +++ b/gdb/testsuite/gdb.base/bad-file.exp @@ -20,6 +20,9 @@ # print different text then the plan is to update the expected text # instead of making this test linux-only or some such. +# The pathnames and shell commands in this test don't work on Windows host. +require {!ishost *-*-mingw*} + # There is no such file, but we still use the normal mechanism to pick # its name and path. standard_testfile diff --git a/gdb/testsuite/gdb.base/early-init-file.exp b/gdb/testsuite/gdb.base/early-init-file.exp index fcd1ff041a1..237439f9db7 100644 --- a/gdb/testsuite/gdb.base/early-init-file.exp +++ b/gdb/testsuite/gdb.base/early-init-file.exp @@ -15,6 +15,9 @@ # Test GDB's early init file mechanism. +# Test assumes host == build. +require {!is_remote host} + standard_testfile # Compile the test executable. diff --git a/gdb/testsuite/gdb.base/empty-host-env-vars.exp b/gdb/testsuite/gdb.base/empty-host-env-vars.exp index 96240311c24..22f6b4d2ebe 100644 --- a/gdb/testsuite/gdb.base/empty-host-env-vars.exp +++ b/gdb/testsuite/gdb.base/empty-host-env-vars.exp @@ -13,6 +13,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# This test assumes host == build. +require {!is_remote host} + # GDB reads some environment variables on startup, make sure it behaves # correctly if these variables are defined but empty. -- 2.31.1