add offload target to testname for pass/fail message
authorAlexandre Oliva <oliva@adacore.com>
Fri, 24 Jul 2020 18:38:42 +0000 (15:38 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 24 Jul 2020 19:13:53 +0000 (16:13 -0300)
commit49341f3bd40220172c199aee7d4ff0a19ecc46d8
treeaa0219b966a83a3bab565a3d5d50f73dd92fbf67
parent0e3ad7e4d030b5bd3598cd3955947e3130a24339
add offload target to testname for pass/fail message

Offload tests that scan dump files may run multiple times, once per
offload target, but the test result messages do not mention the
offload target, so we may seem to have repeated results.  Fixed by
modifying the test name so that it contains the offload target name.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
for  gcc/testsuite/ChangeLog

* lib/scanoffload.exp (scoff-testname, scoff-adjust): New.
(scoff): Call them.
gcc/testsuite/lib/scanoffload.exp