I noticed today that multi-arch-exec.exp was failing in parallel mode.
The bug is that multi-arch-exec.c assumes the non-parallel directory
layout.
This patch fixes the problem using the same "BASEDIR" approach used in
other tests.
Tested both ways on x86-64 Fedora 18.
I'm checking this in.
2013-11-13 Tom Tromey <tromey@redhat.com>
* gdb.multi/multi-arch-exec.exp: Define BASEDIR when compiling.
* gdb.multi/multi-arch-exec.c (main): Use BASEDIR.
+2013-11-13 Tom Tromey <tromey@redhat.com>
+
+ * gdb.multi/multi-arch-exec.exp: Define BASEDIR when compiling.
+ * gdb.multi/multi-arch-exec.c (main): Use BASEDIR.
+
2013-11-12 Doug Evans <dje@google.com>
* gdb.base/fileio.exp: Make $dir2 writable after the test is done
int
main ()
{
- execl ("gdb.multi/multi-arch-exec-hello",
- "gdb.multi/multi-arch-exec-hello",
+ execl (BASEDIR "/multi-arch-exec-hello",
+ BASEDIR "/multi-arch-exec-hello",
(char *) NULL);
perror ("execl failed");
exit (1);
set march2 "-m32"
}
+set dirname [relative_filename [pwd] [file dirname $binfile2]]
if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \
- [list debug nowarnings additional_flags=${march1}]] } {
+ [list debug nowarnings \
+ additional_flags=${march1} \
+ additional_flags=-DBASEDIR=\"$dirname\"]] } {
return -1
}