From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id C3A0F385841F for ; Thu, 24 Feb 2022 17:41:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C3A0F385841F Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-517-kKf4TspIMb69tkn3b3cLrw-1; Thu, 24 Feb 2022 12:41:03 -0500 X-MC-Unique: kKf4TspIMb69tkn3b3cLrw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6981D180FD74 for ; Thu, 24 Feb 2022 17:41:02 +0000 (UTC) Received: from guittard.redhat.com (unknown [10.2.17.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id C3789866EC for ; Thu, 24 Feb 2022 17:41:01 +0000 (UTC) From: Keith Seitz To: gdb-patches@sourceware.org Subject: [PATCH] Fix gdb.fortran "failed to extract expected results" errors Date: Thu, 24 Feb 2022 09:41:00 -0800 Message-Id: <20220224174100.1620375-1-keiths@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: 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, 24 Feb 2022 17:41:07 -0000 When running the gdb.fortran tests array-slices.exp and lbound-ubound.exp, the test suite throws several ERRORs on native-gdbserver/-m{32,64}, and native-extended-gdbsever/-m{32,64}: [on native-extended-gdbserver/-m64] Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/array-slices.exp ... ERROR: failed to extract expected results ERROR: failed to extract expected results Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/lbound-ubound.exp ... ERROR: failed to extract expected results for lbound This occurs because the tests require inferior I/O which we do not have access to while using these targets. This patch skips these tests when running on non-native targets. --- gdb/testsuite/gdb.fortran/array-slices.exp | 6 ++++++ gdb/testsuite/gdb.fortran/lbound-ubound.exp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index 5a909812fe3..8f9c012e399 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -62,6 +62,12 @@ proc run_test { repack } { return -1 } + # This test relies on output from the inferior and is not supported on + # remote targets. + if {![gdb_is_target_native]} { + return 0 + } + # Avoid libc symbols, in particular the 'array' type. gdb_test_no_output "nosharedlibrary" diff --git a/gdb/testsuite/gdb.fortran/lbound-ubound.exp b/gdb/testsuite/gdb.fortran/lbound-ubound.exp index 51dd3818499..671b251c799 100644 --- a/gdb/testsuite/gdb.fortran/lbound-ubound.exp +++ b/gdb/testsuite/gdb.fortran/lbound-ubound.exp @@ -32,6 +32,12 @@ if ![fortran_runto_main] { return -1 } +# This test relies on output from the inferior and is not supported on +# remote targets. +if {![gdb_is_target_native]} { + return 0 +} + # Avoid libc symbols, in particular the 'array' type. gdb_test_no_output "nosharedlibrary" -- 2.34.1