From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7854) id 88E693858291; Mon, 26 Sep 2022 15:23:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88E693858291 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: =?unknown-8bit?q?Cl=E9ment_Chigot_=3Chelflym=40sourceware=2Eorg=3E?=@sourceware.org To: bfd-cvs@sourceware.org Subject: [binutils-gdb] binutils/testsuite: skip gentestdlls related tests if missing X-Act-Checkin: binutils-gdb X-Git-Author: =?utf-8?q?Cl=C3=A9ment_Chigot?= X-Git-Refname: refs/heads/master X-Git-Oldrev: 757b1c20d49438a19cb3bfd5ce5db20f40ce4e21 X-Git-Newrev: e9d92351722884fda8914021b25e5d5a6cc1a181 Message-Id: <20220926152309.88E693858291@sourceware.org> Date: Mon, 26 Sep 2022 15:23:09 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2022 15:23:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De9d923517228= 84fda8914021b25e5d5a6cc1a181 commit e9d92351722884fda8914021b25e5d5a6cc1a181 Author: Cl=C3=A9ment Chigot Date: Fri Sep 16 10:50:34 2022 +0200 binutils/testsuite: skip gentestdlls related tests if missing =20 When launching the testsuite through runtest outside the build tree, gentestdlls might not be available, this binary being created by make check. Simply untested the related tests instead of crashing. =20 binutils/ChangeLog: =20 * testsuite/binutils-all/objdump.exp: Skip dotnet tests if gentestdlls is not available. Diff: --- binutils/testsuite/binutils-all/objdump.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsui= te/binutils-all/objdump.exp index fb099425e34..436fc46d1a8 100644 --- a/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils/testsuite/binutils-all/objdump.exp @@ -787,6 +787,12 @@ proc test_objdump_dotnet_assemblies {} { =20 set test "dotnet-assemblies" =20 + # If gentestdlls isn't available, skip instead of crashing below. + if ![file exists $base_dir/testsuite/gentestdlls] { + untested $test + return + } + set got [binutils_run "$base_dir/testsuite/gentestdlls" "tmpdir pei-i3= 86 pei-x86-64"] set want "wrote linux-pei-x86-64.dll" # The test program is hardcoded to generate valid dlls on any target