aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/iresolve.cc
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2025-04-01 16:22:10 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2025-04-22 10:13:51 +0000
commitdd3dfa3790f22bfcee20d869aefea5886f94346b (patch)
tree517640b1675b2051264b89a772390cc32937bbdc /gcc/fortran/iresolve.cc
parentb7fb18dcf79476aa30ed2ad6cc2eaeab1f266107 (diff)
downloadgcc-dd3dfa3790f22bfcee20d869aefea5886f94346b.zip
gcc-dd3dfa3790f22bfcee20d869aefea5886f94346b.tar.gz
gcc-dd3dfa3790f22bfcee20d869aefea5886f94346b.tar.bz2
testsuite: Add support for GCOV_UNDER_TEST
After commit r15-8947-g8ed2d5d219e999, which added new tests using gcov, the CI noticed failures because it was calling 'gcov' instead of $target-gcov. This is because the CI scripts override GXX_UNDER_TEST, but still run the testsuite in-tree, and gcc-transform-out-of-tree only depends on TESTING_IN_BUILD_TREE but the definition of GCOV uses GCC_UNDER_TEST, GXX_UNDER_TEST or GDC_UNDER_TEST (assuming their default values when TESTING_IN_BUILD_TREE). To handle such a case, this patch adds support for a new variable, GCOV_UNDER_TEST, which overrides the current behavior if defined, and has an effect similar to overriding GCC_UNDER_TEST etc... Unfortunately, the change needs to be duplicated in several places, which use either GCC_UNDER_TEST, GXX_UNDER_TEST or GDC_UNDER_TEST. Tested g++.dg/gcov/gcov.exp and now g++.dg/gcov/gcov-22.C passes (calling <installdir>/bin/$target-gcov as instructed by the CI scripts). No change observed on gcc.misc-tests/gcov.exp, and I could not test gdc.dg/gcov.exp and gnat.dg/gcov/gcov.exp. gcc/testsuite/ChangeLog: * g++.dg/gcov/gcov.exp: Handle GCOV_UNDER_TEST. * gcc.misc-tests/gcov.exp: Likewise. * gdc.dg/gcov.exp: Likewise. * gnat.dg/gcov/gcov.exp: Likewise.
Diffstat (limited to 'gcc/fortran/iresolve.cc')
0 files changed, 0 insertions, 0 deletions