diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.gdb/complaints.exp | 20 |
2 files changed, 18 insertions, 10 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e0ac116..4f727db 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2018-05-23 Tom Tromey <tom@tromey.com> + * gdb.gdb/complaints.exp (test_initial_complaints): Don't mention + symfile_complaints. + (test_short_complaints): Likewise. + (test_empty_complaints): Likewise. + (test_initial_complaints): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + * gdb.gdb/complaints.exp (test_empty_complaints): Update. 2018-05-23 Tom Tromey <tom@tromey.com> diff --git a/gdb/testsuite/gdb.gdb/complaints.exp b/gdb/testsuite/gdb.gdb/complaints.exp index 774ff89..886b435 100644 --- a/gdb/testsuite/gdb.gdb/complaints.exp +++ b/gdb/testsuite/gdb.gdb/complaints.exp @@ -59,27 +59,27 @@ proc test_initial_complaints { } { # Prime the system gdb_test_stdio \ - "call complaint_internal (&symfile_complaints, \"Register a complaint\")" \ + "call complaint_internal (\"Register a complaint\")" \ "During symbol reading, Register a complaint." # Check that the complaint was inserted and where - gdb_test "print symfile_complaints->root->fmt" \ + gdb_test "print symfile_complaint_book.root->fmt" \ ".\[0-9\]+ =.*\"Register a complaint\"" # Re-issue the first message #1 gdb_test_stdio \ - "call complaint_internal (&symfile_complaints, symfile_complaints->root->fmt)" \ + "call complaint_internal (symfile_complaint_book.root->fmt)" \ "During symbol reading, Register a complaint." # Check that there is only one thing in the list. How the boolean # result is output depends on whether GDB is built as a C or C++ # program. - gdb_test "print symfile_complaints->root->next == &complaint_sentinel" \ + gdb_test "print symfile_complaint_book.root->next == &complaint_sentinel" \ ".\[0-9\]+ = \(1|true\)" "list has one entry" # Add a second complaint, expect it gdb_test_stdio \ - "call complaint_internal (&symfile_complaints, \"Testing! Testing! Testing!\")" \ + "call complaint_internal (\"Testing! Testing! Testing!\")" \ "During symbol reading, Testing. Testing. Testing.." return 0 @@ -88,17 +88,17 @@ proc test_initial_complaints { } { # For short complaints, all are the same proc test_short_complaints { } { - gdb_test_exact "call clear_complaints (&symfile_complaints, 1)" "" "short start" + gdb_test_exact "call clear_complaints (1)" "" "short start" # Prime the system test_complaint \ - "call complaint_internal (&symfile_complaints, \"short line 1\")" \ + "call complaint_internal (\"short line 1\")" \ "short line 1..." \ "short line 1" # Add a second complaint, expect it test_complaint \ - "call complaint_internal (&symfile_complaints, \"short line 2\")" \ + "call complaint_internal (\"short line 2\")" \ "short line 2..." \ "short line 2" @@ -131,9 +131,9 @@ proc test_empty_complaint { cmd msg } { proc test_empty_complaints { } { - test_empty_complaint "call clear_complaints(&symfile_complaints,0)" \ + test_empty_complaint "call clear_complaints(0)" \ "empty non-verbose clear" - test_empty_complaint "call clear_complaints(&symfile_complaints,1)" \ + test_empty_complaint "call clear_complaints(1)" \ "empty verbose clear" return 0 |