From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13816 invoked by alias); 28 Nov 2019 09:21:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 13803 invoked by uid 89); 28 Nov 2019 09:21:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Nov 2019 09:21:02 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E8901B22E; Thu, 28 Nov 2019 09:20:59 +0000 (UTC) Subject: Re: [PATCHv2 4/4] gdb: Add new commands to list module variables and functions To: Andrew Burgess Cc: gdb-patches References: <2572574a445f9f32b4cca9a6f767d8495f4503c1.1570101531.git.andrew.burgess@embecosm.com> <20191127212923.GC3410@embecosm.com> From: Tom de Vries Message-ID: <4ab6ac9f-1446-bf90-7aad-294864bdcc54@suse.de> Date: Thu, 28 Nov 2019 09:21:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191127212923.GC3410@embecosm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg01097.txt.bz2 On 27-11-2019 22:29, Andrew Burgess wrote: >> This test-case fails to compile for me: >> ... >> $ cd build/gdb; make check RUNTESTFLAGS="gdb.fortran/info-modules.exp" >> gdb compile failed, src/gdb/testsuite/gdb.fortran/info-types.f90:39:6: >> >> use mod2 >> 1 >> Fatal Error: Can't open module file 'mod2.mod' for reading at (1): No >> such file or directory >> compilation terminated. >> >> === gdb Summary === >> >> # of untested testcases 1 > > I've committed the fix below to address this issue. > > diff --git a/gdb/testsuite/gdb.fortran/info-modules.exp b/gdb/testsuite/gdb.fortran/info-modules.exp > index 43570066d2f..c57ac3ff569 100644 > --- a/gdb/testsuite/gdb.fortran/info-modules.exp > +++ b/gdb/testsuite/gdb.fortran/info-modules.exp > @@ -23,7 +23,7 @@ if { [skip_fortran_tests] } { continue } > standard_testfile info-types.f90 info-types-2.f90 > > if { [prepare_for_testing "failed to prepare" $testfile \ > - [list $srcfile $srcfile2] {debug f90}] } { > + [list $srcfile2 $srcfile] {debug f90}] } { > return -1 > } > > Ah, interesting. I initially tried: ... -standard_testfile info-types.f90 info-types-2.f90 +standard_testfile info-types-2.f90 info-types.f90 ... which made the test-case compile but caused a bunch of FAILs, but it didn't occur to me to switch the order in the preparing_for_testing call. Thanks, - Tom