diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-15 21:23:14 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-15 21:23:14 +0000 |
commit | a59f104ed89fc57cfc877f863ffff7a9afd6d3f9 (patch) | |
tree | e736099981d8fd2703f200ecc071b3514e02d0ef /gdb/testsuite/lib | |
parent | b1dda26e87e0d020b2350b8320b9c0362faf48fc (diff) | |
download | gdb-a59f104ed89fc57cfc877f863ffff7a9afd6d3f9.zip gdb-a59f104ed89fc57cfc877f863ffff7a9afd6d3f9.tar.gz gdb-a59f104ed89fc57cfc877f863ffff7a9afd6d3f9.tar.bz2 |
* gdb.base/printcmds.exp (test_character_literals_accepted): Test
printing of '\'' (which is what the comment says we are testing,
even though we were not), not '''.
(test_integer_literals_rejected): Test that printing ''' is an error.
* gdb.fortran/exprs.exp, gdb.fortran/types.exp,
gdb.chill/chexp.exp, gdb.base/printcmds.exp,
gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
Use gdb_test not test_print_accept.
* lib/gdb.exp: Remove test_print_accept.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index f64a0b7..af747a5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -282,64 +282,7 @@ proc gdb_test { args } { return $result } -# Testing printing of a specific value. For passes and fails, return -# a 1 to indicate that more tests can proceed. However a timeout -# is a serious error, generates a special fail message, and causes -# a 0 to be returned to indicate that more tests are likely to fail -# as well. -# -# Args are: -# -# First one is string to send to gdb -# Second one is string to match gdb result to -# Third one is an optional message to be printed -# -# This differs from gdb_test in a few ways: (1) handling of empty -# sendthis (I suspect test_print_accept callers never use this), (2) -# it tests for the " =" (that could easily be moved to the callers. - -proc test_print_accept { args } { - global prompt - global verbose - - if [llength $args]==3 then { - set message [lindex $args 2] - } else { - set message [lindex $args 0] - } - set sendthis [lindex $args 0] - set expectthis [lindex $args 1] - if $verbose>2 then { - send_user "Sending \"$sendthis\" to gdb\n" - send_user "Looking to match \"$expectthis\"\n" - send_user "Message is \"$message\"\n" - } - send "$sendthis\n" - expect { - -re ".* = $expectthis\r\n$prompt $" { - if ![string match "" $message] then { - pass "$sendthis ($message)" - } else { - pass "$sendthis" - } - return 1 - } - -re ".*$prompt $" { - if ![string match "" $message] then { - fail "$sendthis ($message)" - } else { - fail "$sendthis" - } - return 1 - } - timeout { - fail "$sendthis (timeout)" - return 0 - } - } -} - -# Testing printing of a specific value. For pass or fail, return +# Test that a command gives an error. For pass or fail, return # a 1 to indicate that more tests can proceed. However a timeout # is a serious error, generates a special fail message, and causes # a 0 to be returned to indicate that more tests are likely to fail |