Browse Source

* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message

with invalid operator.
gdb_7_1-branch
Keith Seitz 17 years ago
parent
commit
11ef0d76ab
  1. 5
      gdb/testsuite/ChangeLog
  2. 5
      gdb/testsuite/gdb.cp/cplusfuncs.exp

5
gdb/testsuite/ChangeLog

@ -1,3 +1,8 @@
2009-09-21 Keith Seitz <keiths@redhat.com>
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
with invalid operator.
2009-09-21 Keith Seitz <keiths@redhat.com>
* gdb.cp/classes.exp (do_tests): Add tests to print a constructor

5
gdb/testsuite/gdb.cp/cplusfuncs.exp

@ -534,6 +534,7 @@ proc do_tests {} {
global srcdir
global binfile
global gdb_prompt
global dm_type_int_star
set prms_id 0
set bug_id 0
@ -557,6 +558,10 @@ proc do_tests {} {
test_paddr_operator_functions
test_paddr_hairy_functions
test_lookup_operator_functions
# A regression test on errors involving operators
gdb_test "list foo::operator $dm_type_int_star" \
".*the class foo does not have any method named operator $dm_type_int_star.*"
}
do_tests

Loading…
Cancel
Save