diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/auto-load.exp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1a2b358..d54ed98 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -5,6 +5,9 @@ * gdb.base/auto-load.c: New file. * gdb.base/auto-load.exp: New file. + PR gdb/16626 + * gdb.base/auto-load.exp: Fix out-of-srctree run. + 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> Fix dw2-icycle.exp -fsanitize=address GDB crash. diff --git a/gdb/testsuite/gdb.base/auto-load.exp b/gdb/testsuite/gdb.base/auto-load.exp index 226711f..d0e93f0 100644 --- a/gdb/testsuite/gdb.base/auto-load.exp +++ b/gdb/testsuite/gdb.base/auto-load.exp @@ -20,8 +20,8 @@ if [is_remote host] { } set targetdir "${binfile}.dir" -set sourcescript "${binfile}-script" -set targetscriptdir "${targetdir}/[file dirname ${sourcescript}]" +set sourcescript "${srcdir}/${subdir}/${testfile}-script" +set targetscriptdir "${targetdir}/[file dirname ${binfile}]" set targetscript "${targetscriptdir}/${testfile}-gdb.gdb" remote_exec host "rm -rf ${targetdir}" |