diff options
author | Doug Evans <dje@google.com> | 2014-05-16 12:46:24 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-05-16 12:46:24 -0700 |
commit | d7761c2cba7af75af2feba4a0a6a0e20afaacca1 (patch) | |
tree | a5e667f13b82a2071f848cee3d5a0ff6171800af /gdb | |
parent | 0dbe70ceba9641d585de92136e20cc6f5e252647 (diff) | |
download | fsf-binutils-gdb-d7761c2cba7af75af2feba4a0a6a0e20afaacca1.zip fsf-binutils-gdb-d7761c2cba7af75af2feba4a0a6a0e20afaacca1.tar.gz fsf-binutils-gdb-d7761c2cba7af75af2feba4a0a6a0e20afaacca1.tar.bz2 |
* gdb.base/completion.exp: Check that all expected files exist
before doing file completion.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/completion.exp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 275aa99..e411bd3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,6 +1,8 @@ 2014-05-16 Doug Evans <dje@google.com> * 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> diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index 1e152f6..2608309 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -110,7 +110,9 @@ gdb_test_multiple "target ctf" "" { # do the test on file 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} { gdb_test "complete target ${target_name} ${dir1}/completion" \ "target ${target_name} ${dir1}/completion.*${dir1}/completion0\\.o.*${dir1}/completion1\\.o.*" |