Fix debuginfod test cleanup to prevent test suite aborts
Test cleanup in debuginfod.exp now uses `catch` to prevent `exec kill` failures from aborting the entire test file.
This commit modifies the debuginfod test suite to use catch when executing kill commands for server cleanup. Previously, if the kill command failed (e.g., the server process had already exited), DejaGnu would abort the entire test file. This change ensures that only the specific test case fails, allowing subsequent tests to run.
In Details
The debuginfod test suite uses DejaGnu for test execution. When cleaning up the debuginfod server, the test suite previously used exec kill -INT -[exp_pid]. If this kill command returned a non-zero exit code, Tcl's exec would raise an error, causing DejaGnu to abort the test file. This commit wraps the kill commands in catch to prevent non-zero exit codes from propagating and aborting the test file.
- DejaGnu
- A testing framework that provides a Tcl-based library for building and running tests, often used for GNU software.
- debuginfod
- A server and client system for distributing debugging information, allowing developers to access symbols and other debugging data without needing the full source or build artifacts.
- Tcl
- Tool Command Language, a scripting language commonly used for testing and embedded applications.