]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix 30808 gprofng tests failed
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 31 Aug 2023 23:26:59 +0000 (16:26 -0700)
committerSam James <sam@gentoo.org>
Wed, 20 Dec 2023 02:37:37 +0000 (02:37 +0000)
commitad9049e6da186e8317916dc2d0c89002d6a5e0f9
treef0c45307dbb2dc662aee36ceed072c3ab093cb7c
parent64707a2e11d16bb2ddddcf3a90e486d89d96ea3d
Fix 30808 gprofng tests failed

In gprofng testing, we need a tempory gprofng installation to resolve run-time
dependencies on libraries (libgprofng, libopcodes, libbfd, etc).
We set LD_LIBRARY_PATH and GPROFNG_SYSCONFDIR to find our libraries and
configuration file. These variables must be set for all gprofng tests.

Tested on aarch64 and x86_64 with and without --enable-shared and --target=<>.

gprofng/ChangeLog
2023-08-31  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/30808
* testsuite/config/default.exp: Make a temporary install dir.
Set LD_LIBRARY_PATH, GPROFNG_SYSCONFDIR.
* testsuite/lib/Makefile.skel: Move LD_LIBRARY_PATH and
GPROFNG_SYSCONFDIR setting in testsuite/config/default.exp.

(cherry picked from commit a13e4c5c10d1a13d9128d033c9525810e876ac14)
gprofng/testsuite/config/default.exp
gprofng/testsuite/lib/Makefile.skel