mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* gdb.base/completion.exp: Check that all expected files exist
before doing file completion.
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
2014-05-16 Doug Evans <dje@google.com>
|
2014-05-16 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* gdb.base/Makefile.in (EXECUTABLES): Add completion.
|
* gdb.base/Makefile.in (EXECUTABLES): Add completion.
|
||||||
|
* gdb.base/completion.exp: Check that all expected files exist
|
||||||
|
before doing file completion.
|
||||||
|
|
||||||
2014-05-16 Doug Evans <dje@google.com>
|
2014-05-16 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
@ -110,7 +110,9 @@ gdb_test_multiple "target ctf" "" {
|
|||||||
# do the test on file completion.
|
# do the test on file completion.
|
||||||
|
|
||||||
foreach dir1 [ list "./gdb.base" "./outputs/gdb.base/completion" ] {
|
foreach dir1 [ list "./gdb.base" "./outputs/gdb.base/completion" ] {
|
||||||
if [remote_file host exists ${dir1}/completion] {
|
if { [remote_file host exists ${dir1}/completion]
|
||||||
|
&& [remote_file host exists ${dir1}/completion0.o]
|
||||||
|
&& [remote_file host exists ${dir1}/completion1.o] } {
|
||||||
foreach target_name ${targets} {
|
foreach target_name ${targets} {
|
||||||
gdb_test "complete target ${target_name} ${dir1}/completion" \
|
gdb_test "complete target ${target_name} ${dir1}/completion" \
|
||||||
"target ${target_name} ${dir1}/completion.*${dir1}/completion0\\.o.*${dir1}/completion1\\.o.*"
|
"target ${target_name} ${dir1}/completion.*${dir1}/completion0\\.o.*${dir1}/completion1\\.o.*"
|
||||||
|
Reference in New Issue
Block a user