]> sourceware.org Git - bunsen.git/commit
bunsen dejagnu parsing: tolerate misordered .log <-> .sum
authorFrank Ch. Eigler <fche@redhat.com>
Sat, 11 Jun 2022 17:08:49 +0000 (13:08 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sat, 11 Jun 2022 17:08:49 +0000 (13:08 -0400)
commitd1c572fd3daa96fa552ff141fd1b4ce10737391f
tree3985d69a65b3b28091a3bbaab008255567fbe74e
parent8e15d1f088bfaf28146213805db64ad68c162cba
bunsen dejagnu parsing: tolerate misordered .log <-> .sum

As keiths & serhei have long ago discovered and we rediscovered now,

       make -j check

type dejagnu runs can regularly scramble .sum / .log file segments so
they no longer parallel.  One offender is gcc's
contrib/dg-extract-results.sh that assembles .log/.sum files from
parallel-executed pieces .... and proceeds to SORT rows within .sum
file .exp segments (only).  Why?  Why?  WHYYYYYY?!  y tho

That resulted in many logfile cursor = NULL results.  Tweak
i-dejagnu-parser to tolerate this case better by pre-parsing segments
of the .exp file loglines.  The logic here may break if some wacky
tool reorders the sequence of .exp files, but this has not been
observed.
bin/i-dejagnu-parser
tests/run-gdb-diff.sh
tests/testdata/gdb-keiths/gdb.log
This page took 0.176335 seconds and 5 git commands to generate.