gcov: Respect triplet when looking for gcov

When testing a cross toolchain outside the build tree, the binary name
for gcov is prefixed with the triplet.

gcc/testsuite/ChangeLog:

	* g++.dg/gcov/gcov.exp: Respect triplet when looking for gcov.
	* gcc.misc-tests/gcov.exp: Likewise.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
This commit is contained in:
Torbjörn SVENSSON 2022-09-09 12:19:27 +02:00 committed by Martin Liska
parent 723ef5a937
commit 34b9a03353
2 changed files with 4 additions and 4 deletions

View File

@ -24,9 +24,9 @@ global GXX_UNDER_TEST
# Find gcov in the same directory as $GXX_UNDER_TEST.
if { ![is_remote host] && [string match "*/*" [lindex $GXX_UNDER_TEST 0]] } {
set GCOV [file dirname [lindex $GXX_UNDER_TEST 0]]/gcov
set GCOV [file dirname [lindex $GXX_UNDER_TEST 0]]/[transform gcov]
} else {
set GCOV gcov
set GCOV [transform gcov]
}
# Initialize harness.

View File

@ -24,9 +24,9 @@ global GCC_UNDER_TEST
# For now find gcov in the same directory as $GCC_UNDER_TEST.
if { ![is_remote host] && [string match "*/*" [lindex $GCC_UNDER_TEST 0]] } {
set GCOV [file dirname [lindex $GCC_UNDER_TEST 0]]/gcov
set GCOV [file dirname [lindex $GCC_UNDER_TEST 0]]/[transform gcov]
} else {
set GCOV gcov
set GCOV [transform gcov]
}
# Initialize harness.