From: Daniel Jacobowitz Date: Tue, 16 Feb 2010 20:18:53 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdc498b81cfb6943b0d544047e8d519dab0f1662;p=binutils-gdb.git gdb/testsuite/ * gdb.base/comp-dir/subdir/dummy.txt: New file. * gdb.base/completion.exp: Use comp-dir/subdir instead of creating a temporary directory. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index eaff2110ee4..ff1b0099aeb 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-02-16 Daniel Jacobowitz + + * gdb.base/comp-dir/subdir/dummy.txt: New file. + * gdb.base/completion.exp: Use comp-dir/subdir instead of creating + a temporary directory. + 2010-02-16 Daniel Jacobowitz * gdb.base/charset.exp: Use a single regular expression to match diff --git a/gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt b/gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt new file mode 100644 index 00000000000..b10a2c3357d --- /dev/null +++ b/gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt @@ -0,0 +1 @@ +For completion.exp diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index 68be35debbb..53d021a2c94 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -724,14 +724,11 @@ gdb_test "cd ${fullsrcdir}" \ # GDB used to fail adding / on directories, on the first try only. -# Do not use the `completion' start here as it would conflict with the -# testcase (complete 'file ./gdb.base/complet') expectations. -set uniquedir ${objdir}/${subdir}/compl-uNiQuEdIr +set uniquedir ../testsuite/gdb.base/comp-dir set escapeduniquedir [string_to_regexp ${uniquedir}] set uniquesu subdi set uniquesub ${uniquesu}r set escapeuniquesub [string_to_regexp ${uniquesub}] -file mkdir ${uniquedir}/${uniquesub} send_gdb "dir ${uniquedir}\t" gdb_expect { -re "${escapeduniquedir}/" {