diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2020-11-26 13:24:23 +0100 |
---|---|---|
committer | Ilya Leoshkevich <iii@linux.ibm.com> | 2020-11-30 19:11:56 +0100 |
commit | b46314c78061a5156bac44a317c87d32b00d4295 (patch) | |
tree | 720c50930258ec8be653e18ec85b6982ca3c6c4c /gcc | |
parent | f835e9f6562dda9c8a1384be2c9d4e45c112ed8e (diff) | |
download | gcc-b46314c78061a5156bac44a317c87d32b00d4295.zip gcc-b46314c78061a5156bac44a317c87d32b00d4295.tar.gz gcc-b46314c78061a5156bac44a317c87d32b00d4295.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/profopt.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp index d686343..98e1a0e 100644 --- a/gcc/testsuite/lib/profopt.exp +++ b/gcc/testsuite/lib/profopt.exp @@ -456,6 +456,7 @@ proc profopt-execute { src } { set id [remote_spawn "" $cmd] if { $id < 0 } { unsupported "$testcase -fauto-profile: cannot run create_gcov" + unset testname_with_flags set status "fail" return } |