From b46314c78061a5156bac44a317c87d32b00d4295 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Thu, 26 Nov 2020 13:24:23 +0100 Subject: [PATCH] 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 * lib/profopt.exp: Unset testname_with_flags if create_gcov fails. --- gcc/testsuite/lib/profopt.exp | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.7.4