]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/dwarf: ensure build_executable_and_dwo_files calls untested in all...
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 21 Nov 2025 20:13:58 +0000 (15:13 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 1 Dec 2025 17:45:09 +0000 (12:45 -0500)
There are some paths of build_executable_and_dwo_files that return -1
without calling "untested".  As a result, tests such as
gdb.dwarf2/fission-absolute-dwo.exp would exit without leaving a trace.
Add some untested calls to fix that.

Change-Id: I2e632b5b44b11b4beb39791316f1203f9a12bf4f
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/lib/dwarf.exp

index 6e87d8fba9bc097d3cecd7c8e5fb574052d2ee85..dc9d69518c5ed80169e687827a48026950974b85 100644 (file)
@@ -116,17 +116,20 @@ proc build_executable_and_dwo_files { testname executable options args } {
        # Currently don't support compiling thread based tests here.
        # If this is required then look to build_executable_from_specs
        # for inspiration.
+       untested "option not supported"
        return -1
     }
     if {[lsearch -exact $options rust] != -1} {
        # Currently don't support compiling rust tests here.  If this
        # is required then look to build_executable_from_specs for
        # inspiration.
+       untested "rust not supported"
        return -1
     }
 
     # Must be run on local host due to use of objcopy.
     if {[is_remote host]} {
+       untested "using remote host"
        return -1
     }