fix argv0-symlink.exp for parallel mode
authorTom Tromey <tromey@redhat.com>
Fri, 18 Oct 2013 19:12:32 +0000 (13:12 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 4 Nov 2013 18:02:10 +0000 (11:02 -0700)
commit24890efdabbd9d827cdd2088b022f070da04b14f
tree635a4429eb8a0336102d135568f8209cb37cad49
parentc59ffcabfe8b416384b9ec8288b77ae44643be4d
fix argv0-symlink.exp for parallel mode

argv0-symlink.exp doesn't work properly if standard_output_file puts
files into a per-test subdirectory.  That's because it assumes that
files appear in $subdir, which is no longer true.

This patch fixes the problem by computing the correct directory at
runtime.

Tested both with and without GDB_PARALLEL on x86-64 Fedora 18.

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

* gdb.base/argv0-symlink.exp: Compute executable's directory
dynamically.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/argv0-symlink.exp