binutils-gdb/gdb/testsuite/lib
Pedro Alves 6892d2e4df Tighten regexp of lib/completion-support.exp:test_gdb_complete_tab_multiple
While writing the tests included in the previous commit, I noticed
that test_gdb_complete_tab_multiple would not FAIL if GDB happens to
show more completions than expected before the expected list.

E.g., with something like this, expecting "p foo" to complete to
"foo2" and "foo3":

 test_gdb_complete_tab_multiple "p foo" "" {
	"foo2"
	"foo3"
 }

and then if foo actually completes to:

 (gdb) p foo[TAB]
 foo1   foo2  foo3
 ^^^^

we'd still PASS.  (Note the spurious "foo1" above.)

This tightens the regexp with a beginning anchor thus making the
completions above cause a FAIL.  Other similar functions in
completion-support.exp already do something like this; I had just
missed this one originally.  Thankfully, this did not expose any
problems in the gdb.linespec/ tests.  Phew.

gdb/testsuite/ChangeLog:
2017-12-13  Pedro Alves  <palves@redhat.com>

	* lib/completion-support.exp (test_gdb_complete_tab_multiple):
	Tighten regexp by matching with an anchor.
2017-12-13 16:40:00 +00:00
..
ada.exp
append_gdb_boards_dir.exp
build-piece.exp
cache.exp
cell.exp
cl_util.c
cl_util.h
compiler.c
compiler.cc
completion-support.exp Tighten regexp of lib/completion-support.exp:test_gdb_complete_tab_multiple 2017-12-13 16:40:00 +00:00
cp-support.exp Record nested types 2017-12-07 15:01:30 -08:00
d-support.exp
data-structures.exp Record nested types 2017-12-07 15:01:30 -08:00
dtrace.exp
dwarf.exp
fortran.exp
future.exp
gdb-guile.exp
gdb-python.exp Fix unstable test names in gdb.python/py-objfile.exp 2017-10-24 10:53:29 +01:00
gdb-utils.exp
gdb.exp Make "break foo" find "A::foo", A::B::foo", etc. [C++ and wild matching] 2017-11-29 19:43:48 +00:00
gdbserver-support.exp
gen-perf-test.exp
go.exp
memory.exp
mi-support.exp
objc.exp
opencl.exp
opencl_hostapp.c
opencl_kernel.cl
pascal.exp
pdtrace.in
perftest.exp
prelink-support.exp
prompt.exp
range-stepping-support.exp
read1.c
rust-support.exp
selftest-support.exp Don't run gdb.gdb/ selftests if use_gdb_stub is true 2017-10-13 17:26:04 +01:00
set_unbuffered_mode.c
trace-support.exp
unbuffer_output.c