binutils-gdb/gdb/testsuite/gdb.debuginfod
Tom de Vries 15ede33bfa [gdb/testsuite] Fix gdb.debuginfod/fetch_src_and_symbols.exp with check-read1
With test-case gdb.debuginfod/fetch_src_and_symbols.exp and check-read1, I run
into:
...
(gdb) FAIL: gdb.debuginfod/fetch_src_and_symbols.exp: local_url: \
  file fetch_src_and_symbols (got interactive prompt)
...

The problem is that this output:
...
Enable debuginfod for this session? (y or [n]) y^M
...
is matched using regexp "Enable debuginfod?.*" with matches only the first two
words of the output, after which an implicit clause in gdb_test_multiple triggers
on the second part containing the interactive prompt.

Fix this by included the interactive prompt in the regexp.

Tested on x86_64-linux.
2022-10-20 09:50:04 +02:00
..
fetch_src_and_symbols.exp [gdb/testsuite] Fix gdb.debuginfod/fetch_src_and_symbols.exp with check-read1 2022-10-20 09:50:04 +02:00
main.c