This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] gdb.base/volatile.exp / varargs.exp: replace send_gdb with gdb_test
> You can anchor the output with gdb_test_multiple. This, for example,
> checks that a command produces no output other than the prompt:
>
> set cmd "..."
> set msg "..."
> set cmd_regex [string_to_regexp $cmd]
> gdb_test_multiple $cmd $msg {
> -re "^$cmd_regex\r\n$gdb_prompt $" {
> pass $msg
> }
> }
Good to know! I thought I tried the above, but I must have screwed
up somewhere - maybe I was missing the \r\n...
> something like this is used in several places in the
> testsuite. we could perhaps add a wrapper in gdb.exp.
I think we should - it's something that is so common, and the
gdb.reverse section alone is littered with FIXMEs because of
this issue. gdb_test_no_output?
--
Joel