Index: testsuite/gdb.base/finish.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/finish.exp,v retrieving revision 1.10 diff -u -p -r1.10 finish.exp --- testsuite/gdb.base/finish.exp 1 Jan 2008 22:53:19 -0000 1.10 +++ testsuite/gdb.base/finish.exp 21 May 2008 04:43:58 -0000 @@ -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.