[gdb/testsuite] Be quiet about missing prelink in solib-overlap.exp
authorTom de Vries <tdevries@suse.de>
Wed, 19 Feb 2020 07:24:44 +0000 (08:24 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 19 Feb 2020 07:24:44 +0000 (08:24 +0100)
commit86cbc5dc163fb8f0927b82d5f0e3809a3820389b
tree2f90973a31919d79b8b3b9e0614b52c357bc46df
parent9db2b96b0759fda3347743caba66a395d115e335
[gdb/testsuite] Be quiet about missing prelink in solib-overlap.exp

When running gdb.base/solib-overlap.exp, I get:
...
Running src/gdb/testsuite/gdb.base/solib-overlap.exp ...
sh: prelink: command not found

                === gdb Summary ===

nr of untested testcases         1
...

The verbose output on stdout/stderr is due to using system to execute
prelink, which also means that the output is not captured in gdb.log and
gdb.sum.

Fix this by using exec instead of system.

Tested on x86_64-linux, with:
- no prelink installed, and
- a fake prelink installed, using "cp /usr/bin/echo ~/bin/prelink".

gdb/testsuite/ChangeLog:

2020-02-19  Tom de Vries  <tdevries@suse.de>

* gdb.base/solib-overlap.exp: Use exec instead of system to execute
prelink.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/solib-overlap.exp