binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/testsuite

binutils: Prevent test suite abort on debuginfod cleanup failure

Test suite no longer aborts when debuginfod server cleanup fails.

Previously, the binutils test suite could abort entirely if the cleanup process for the debuginfod server encountered an error. This was because Tcl’s exec command would raise an error, halting the test run and causing subsequent tests to be skipped. This change wraps the kill commands in a catch block, allowing the test to fail gracefully without aborting the entire test file.

In Details

The debuginfod.exp test suite file contains cleanup paths that execute exec kill -INT -[exp_pid] without error handling. When the kill command fails (e.g., exits non-zero), Tcl's exec raises an error, causing DejaGnu to abort the test file. This commit wraps the kill calls in catch blocks within debuginfod.exp to prevent test file abortion due to non-zero exit statuses from kill, ensuring that subsequent tests can still run and that failures are reported correctly.

For Context
debuginfod
A server that provides debugging information files to clients, allowing for faster debugging of applications without needing local debug symbols.
test suite
A collection of automated tests designed to verify the correct functionality of a software project.
Tcl
Tool Command Language. A dynamic programming language often used for scripting, testing, and rapid prototyping, particularly within the GNU toolchain.
DejaGnu
A testing framework that provides a consistent environment for testing all kinds of programs, regardless of the language they are written in or the platform they are running on.
Filed Under: binutilstestingdebuginfodbugfix