mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
This commit is for the benefit of GDB, but as the binutils-gdb repository shares the contrib/ directory with GCC, this commit must first be applied to GCC and then copied back to binutils-gdb. When running GDB tests in parallel (make check -j$(nproc)), the consolidated gdb.sum and gdb.log files are produced by contrib/dg-extract-results.py, which merges per-test output files. If any single per-test output file is malformed (e.g., due to a DejaGnu EILSEQ crash, which is how I encountered this problem), the script aborts via self.fatal(). Because this script is invoked via a Makefile command using shell redirection, this causes the top-level output files to be left as empty, zero-byte files, discarding valid results from all other tests. Fix by making the script tolerant of unparseable input files. Wrap each file's parsing in a try/except block. When a file cannot be parsed, emit a warning to stderr and continue processing remaining files. This ensures that crashing tests do not destroy the consolidated output for the entire parallel build. Tested on Fedora 44 using the GCC testsuite (make check-gcc -j$(nproc)). The consolidated results are produced correctly with no regressions. This commit fixes this GDB bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34147 contrib/ChangeLog: * dg-extract-results.py: Show warnings instead of erroring out when encountering an unparseable file.
28 lines
774 B
Text
28 lines
774 B
Text
2026-05-29 Kevin Buettner <kevinb@redhat.com>
|
|
|
|
* dg-extract-results.py: Sync with GCC.
|
|
|
|
2024-03-11 Sam James <sam@gentoo.org>
|
|
|
|
* dg-extract-results.py: Sync with GCC.
|
|
* dg-extract-results.sh: Sync with GCC.
|
|
|
|
2020-09-25 Simon Marchi <simon.marchi@polymtl.ca>
|
|
|
|
* mklog.py: New file, imported from gcc.
|
|
|
|
2020-05-15 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
* dg-extract-results.py: Update from gcc repo.
|
|
* dg-extract-results.sh: Likewise.
|
|
|
|
2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
|
|
|
* dg-extract-results.py: Update from gcc repo.
|
|
* dg-extract-results.sh: Likewise.
|
|
|
|
2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
* dg-extract-results.sh: Move from gdb/testsuite.
|
|
Update from gcc repo.
|
|
* dg-extract-results.py: New from gcc repo.
|