+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.
}
}
+# 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
finish_1 "long_long"
finish_1 "float"
finish_1 "double"
+ finish_abbreviation "fin"
}
# Start with a fresh gdb.