diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-05-21 17:55:22 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-05-21 17:55:22 +0000 |
commit | 5943254b565979c5d7152b2fa7f2012e80499682 (patch) | |
tree | ce785bc0a12fa385aec12d7bc4682f5eb416259a | |
parent | 0e479716ae7ddc472b819e5308b2484de38abc60 (diff) | |
download | gdb-5943254b565979c5d7152b2fa7f2012e80499682.zip gdb-5943254b565979c5d7152b2fa7f2012e80499682.tar.gz gdb-5943254b565979c5d7152b2fa7f2012e80499682.tar.bz2 |
* gdb.base/finish.exp: Test that "fin" works as an abbreviation
of the "finish" command.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/finish.exp | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d34bac4..3c5f4ec 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-05-20 Joel Brobecker <brobecker@adacore.com> + + * gdb.base/finish.exp: Test that "fin" works as an abbreviation + of the "finish" command. + 2008-05-21 Nick Roberts <nickrob@snap.net.nz> * gdb.base/annota1.exp: Test for new annotation. diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp index ccde9f0..66545e0 100644 --- a/gdb/testsuite/gdb.base/finish.exp +++ b/gdb/testsuite/gdb.base/finish.exp @@ -97,6 +97,21 @@ proc finish_void { } { } } +# A function that tests that the given ABBREV is a working abbreviation +# of the "finish" command. + +proc finish_abbreviation { abbrev } { + + if { ! [ runto "int_func" ] } then { + fail "running to int_func" + return -1 + } + + gdb_test "$abbrev" \ + "Value returned is .* = 1" \ + "Testing the \"$abbrev\" abbreviation for \"finish\"" +} + proc finish_tests { } { global gdb_prompt @@ -113,6 +128,7 @@ proc finish_tests { } { finish_1 "long_long" finish_1 "float" finish_1 "double" + finish_abbreviation "fin" } # Start with a fresh gdb. |