gdb/testsuite: use with_cwd where possible
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 22 Apr 2022 13:16:59 +0000 (09:16 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 27 Apr 2022 00:16:03 +0000 (20:16 -0400)
commit019a5c62974523a3331911130c66350ef0a6f3c4
treecf2f44ec018c1957bff0c335820a0b87c0479715
parent2538fcd3f4b6807f48de20982a2d9c584d98912b
gdb/testsuite: use with_cwd where possible

I learned about with_cwd today.  I spotted a few spots that could use
it, to make the code more robust.

Change-Id: Ia23664cb827f25e79d31948e0c006a8dc61c33e1
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/fullname.exp
gdb/testsuite/gdb.base/fullpath-expand.exp
gdb/testsuite/gdb.base/settings.exp
gdb/testsuite/gdb.base/source-dir.exp
gdb/testsuite/gdb.linespec/break-ask.exp
gdb/testsuite/gdb.linespec/macro-relative.exp
gdb/testsuite/lib/ada.exp