compare_tests: distinguish c-c++-common results by tool
commit586e32583a0cdba9ecc6bc914bd12465c0280c22
authorAlexandre Oliva <oliva@adacore.com>
Wed, 20 Dec 2023 05:31:57 +0000 (20 02:31 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 21 Dec 2023 04:02:41 +0000 (21 01:02 -0300)
treef58d6a990b22fe93a825330f9ea0dc107718e8c9
parentef259ebeb39501bfddcc7c203a9a7a0daefa8ffd
compare_tests: distinguish c-c++-common results by tool

When compare_tests compares both C and C++ tests in c-c++-common, they
get the same identifier, so expected differences in results across
languages become undesirably noisy.

This patch adds tool identifiers to tests, so that runs by different
tools are not confused by the compare logic.

It also fixes a bug in reporting differences, that would attempt to
print an undefined fname (the definitions are in subshell loops), and
adjusts the target insertion to match tabs in addition to blanks after
colons.

for  contrib/ChangeLog

* compare_tests: Add tool to test lines.  Match tabs besides
blanks to insert tool and target.  Don't print undefined fname.
contrib/compare_tests