fix some "exec" tests
authorTom Tromey <tromey@redhat.com>
Fri, 18 Oct 2013 20:00:44 +0000 (14:00 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 4 Nov 2013 18:02:10 +0000 (11:02 -0700)
commit3fef966c5ff1b0f6031e31117547e901fedb08c4
treef25bac6597187d8df7b37ba23794f54026720cc5
parent24890efdabbd9d827cdd2088b022f070da04b14f
fix some "exec" tests

A few tests run an inferior that execs some other program.  The name
of this exec'd program is compiled in.  These tests assume the current
test suite directory layout, but fail in parallel mode.

This patch fixes these tests by letting the .exp files pass in the
directory names at compile time.

2013-11-04  Tom Tromey  <tromey@redhat.com>

* gdb.base/foll-exec.c (main): Use BASEDIR.
* gdb.base/foll-exec.exp: Define BASEDIR during compilation.
* gdb.base/foll-vfork.c (main): Use BASEDIR.
* gdb.base/foll-vfork.exp: Define BASEDIR during compilation.
* gdb.multi/bkpt-multi-exec.c (main): Use BASEDIR.
* gdb.multi/bkpt-multi-exec.exp: Define BASEDIR during compilation.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-exec.c
gdb/testsuite/gdb.base/foll-exec.exp
gdb/testsuite/gdb.base/foll-vfork.c
gdb/testsuite/gdb.base/foll-vfork.exp
gdb/testsuite/gdb.multi/bkpt-multi-exec.c
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp