binutils debuginfod test
authorAlan Modra <amodra@gmail.com>
Sun, 21 Nov 2021 23:30:45 +0000 (10:00 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 23 Nov 2021 05:09:26 +0000 (15:39 +1030)
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

index 17fedb97340dc55b096f9338c04158e2423a8c68..caff955db3e4c743377ae4d3ed6eda393d35c0fd 100644 (file)
@@ -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} {