diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2022-09-09 12:19:27 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-09-12 11:42:09 +0200 |
commit | 34b9a03353d3fdc5c57f2708469d0df78c6d6508 (patch) | |
tree | 758bbe0cf0c4337c30c0d15e9ed61fe93f9ed241 /gcc | |
parent | 723ef5a937dbab5e7a35761fd7f0ff0c76849340 (diff) | |
download | gcc-34b9a03353d3fdc5c57f2708469d0df78c6d6508.zip gcc-34b9a03353d3fdc5c57f2708469d0df78c6d6508.tar.gz gcc-34b9a03353d3fdc5c57f2708469d0df78c6d6508.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/gcov/gcov.exp | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.misc-tests/gcov.exp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/gcov/gcov.exp b/gcc/testsuite/g++.dg/gcov/gcov.exp index 88acd95..04e7a01 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov.exp +++ b/gcc/testsuite/g++.dg/gcov/gcov.exp @@ -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. diff --git a/gcc/testsuite/gcc.misc-tests/gcov.exp b/gcc/testsuite/gcc.misc-tests/gcov.exp index 82376d9..b8e9661 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov.exp +++ b/gcc/testsuite/gcc.misc-tests/gcov.exp @@ -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. |