diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-04-11 11:11:12 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-04-11 11:11:12 +0000 |
commit | 8a3dae3ed03f381d0bf16cdea31243ee831159a4 (patch) | |
tree | 7e9b24f77e9de166ad10bff3cf19cee9bf782e70 /gdb/doc/gdbint.texinfo | |
parent | b0b925864597e040ca3f793f382cea6a9593e647 (diff) | |
download | gdb-8a3dae3ed03f381d0bf16cdea31243ee831159a4.zip gdb-8a3dae3ed03f381d0bf16cdea31243ee831159a4.tar.gz gdb-8a3dae3ed03f381d0bf16cdea31243ee831159a4.tar.bz2 |
* gdbint.texinfo (Writing Tests): Mention gdb_test_multiple
and tab expansion.
Diffstat (limited to 'gdb/doc/gdbint.texinfo')
-rw-r--r-- | gdb/doc/gdbint.texinfo | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index b981e80..8e6720f 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -7144,7 +7144,14 @@ instance, @file{gdb.base/exprs.exp} defines a @code{test_expr} that calls @code{gdb_test} multiple times. Only use @code{send_gdb} and @code{gdb_expect} when absolutely -necessary, such as when @value{GDBN} has several valid responses to a command. +necessary. Even if @value{GDBN} has several valid responses to +a command, you can use @code{gdb_test_multiple}. Like @code{gdb_test}, +@code{gdb_test_multiple} recognizes internal errors and unexpected +prompts. + +Do not write tests which expect a literal tab character from @value{GDBN}. +On some operating systems (e.g.@: OpenBSD) the TTY layer expands tabs to +spaces, so by the time @value{GDBN}'s output reaches expect the tab is gone. The source language programs do @emph{not} need to be in a consistent style. Since @value{GDBN} is used to debug programs written in many different |