profopt-execute: unset testname_with_flags if create_gcov fails
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 26 Nov 2020 12:24:23 +0000 (13:24 +0100)
committerIlya Leoshkevich <iii@linux.ibm.com>
Mon, 30 Nov 2020 18:11:56 +0000 (19:11 +0100)
commitb46314c78061a5156bac44a317c87d32b00d4295
tree720c50930258ec8be653e18ec85b6982ca3c6c4c
parentf835e9f6562dda9c8a1384be2c9d4e45c112ed8e
profopt-execute: unset testname_with_flags if create_gcov fails

When diffing test results, there sometimes occur spurious "New tests
that PASS" / "Old tests that passed, that have disappeared" messages.
The reason is that if create_gcov is not installed, then the cached
testname_with_flags is not cleared and is carried over to the next
test.

gcc/testsuite/ChangeLog:

2020-11-26  Ilya Leoshkevich  <iii@linux.ibm.com>

* lib/profopt.exp: Unset testname_with_flags if create_gcov
fails.
gcc/testsuite/lib/profopt.exp