mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
2003-04-10 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Use string_to_regexp to match the working directory name.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-10 Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/completion.exp: Use string_to_regexp to match the
|
||||||
|
working directory name.
|
||||||
|
|
||||||
2003-04-09 Jim Blandy <jimb@redhat.com>
|
2003-04-09 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
|
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
|
||||||
|
@ -669,7 +669,14 @@ cd ${srcdir}
|
|||||||
set fullsrcdir [pwd]
|
set fullsrcdir [pwd]
|
||||||
cd ${mydir}
|
cd ${mydir}
|
||||||
|
|
||||||
gdb_test "cd ${fullsrcdir}" "Working directory ${fullsrcdir}.*" "cd to \${srcdir}"
|
# If the directory name contains a '+' we must escape it, adding a backslash.
|
||||||
|
# If not, the test below will fail because it will interpret the '+' as a
|
||||||
|
# regexp operator. We use string_to_regexp for this purpose.
|
||||||
|
|
||||||
|
gdb_test "cd ${fullsrcdir}" \
|
||||||
|
"Working directory [string_to_regexp ${fullsrcdir}].*" \
|
||||||
|
"cd to \${srcdir}"
|
||||||
|
|
||||||
send_gdb "file ./gdb.base/compl\t"
|
send_gdb "file ./gdb.base/compl\t"
|
||||||
sleep 1
|
sleep 1
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
|
Reference in New Issue
Block a user