]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix 31252 gprofng causes testsuite parallel jobs fail
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Sat, 20 Jan 2024 02:40:21 +0000 (18:40 -0800)
committerSam James <sam@gentoo.org>
Tue, 23 Jan 2024 07:08:41 +0000 (07:08 +0000)
commit883df8a8c0afef2e1d0a17083d95001251f7d3f6
tree0e415d82246146203f2addc31878c6f2317ef598
parent306b66bac6ddf7274d55d467fb18b74158cee844
Fix 31252 gprofng causes testsuite parallel jobs fail

Before running our tests, we made a fake installation into ./tmpdir.
This installation changes libopcodes.la in the build area.
Gas testing may fail if gas and gprofng tests are run in parallel.

I create a script to run gprofng. Inside this script, LD_LIBRARY_PATH,
GPROFNG_SYSCONFDIR are set.
putenv_libcollector_ld_misc() first uses $GPROFNG_PRELOAD_LIBDIRS to create
directories for SP_COLLECTOR_LIBRARY_PATH ($SP_COLLECTOR_LIBRARY_PATH is used
to set up LD_PRELOAD).

gprofng/ChangeLog
2024-01-19  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/31252
PR gprofng/30808
* src/envsets.cc (putenv_libcollector_ld_misc): Use
$GPROFNG_PRELOAD_LIBDIRS first to build SP_COLLECTOR_LIBRARY_PATH.
* testsuite/config/default.exp: Create a script to run gprofng.
* testsuite/lib/display-lib.exp: Fix typo.

(cherry picked from commit 26f557af696726a8556bff12f54e4d05cd7a5034)
gprofng/src/envsets.cc
gprofng/testsuite/config/default.exp
gprofng/testsuite/lib/display-lib.exp