From 0c3e266dc283a45a23185be3bb49e4d33987a892 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 22 Nov 2021 10:00:45 +1030 Subject: [PATCH] binutils debuginfod test A missing "return" resulted in this non-ELF fail: x86_64-w64-mingw32 +FAIL: debuginfod (create separate debug info file) Also, the debuginfod I have installed does not appear to handle non-native ELF objects, so only run the test when native. * testsuite/binutils-all/debuginfod.exp: Don't run test unless native ELF. --- binutils/testsuite/binutils-all/debuginfod.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binutils/testsuite/binutils-all/debuginfod.exp b/binutils/testsuite/binutils-all/debuginfod.exp index 17fedb97340..caff955db3e 100644 --- a/binutils/testsuite/binutils-all/debuginfod.exp +++ b/binutils/testsuite/binutils-all/debuginfod.exp @@ -28,8 +28,9 @@ if {[which curl] == 0} { return } -if { ![is_elf_format] } { +if { ![is_elf_format] || ![isnative] } { unsupported "$test (unsupported target)" + return } if { [which $OBJDUMP] == 0} { -- 2.30.2