Make find_thread_ptid lookup thread map instead of iterate
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.gdb / complaints.exp
index 33ec268949ee5e720754093c7d8a7a211a6efd67..b4a5ab30870034ff4c34c48bd0690c932e94333e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2002-2018 Free Software Foundation, Inc.
+# Copyright 2002-2020 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -62,37 +62,17 @@ proc test_initial_complaints { } {
     # Prime the system
     gdb_test_stdio \
        "call complaint_internal (\$cstr)" \
-       "During symbol reading, Register a complaint."
+       "During symbol reading: Register a complaint"
 
     # Re-issue the first message #1
     gdb_test_stdio \
        "call complaint_internal (\$cstr)" \
-       "During symbol reading, Register a complaint."
+       "During symbol reading: Register a complaint"
 
     # Add a second complaint, expect it
     gdb_test_stdio \
        "call complaint_internal (\"Testing! Testing! Testing!\")" \
-       "During symbol reading, Testing. Testing. Testing.."
-
-    return 0
-}
-
-# For short complaints, all are the same
-
-proc test_short_complaints { } {
-    gdb_test_exact "call clear_complaints (1)" "" "short start"
-
-    # Prime the system
-    test_complaint \
-       "call complaint_internal (\"short line 1\")" \
-       "short line 1" \
-       "short line 1"
-
-    # Add a second complaint, expect it
-    test_complaint \
-       "call complaint_internal (\"short line 2\")" \
-       "short line 2" \
-       "short line 2"
+       "During symbol reading: Testing. Testing. Testing."
 
     return 0
 }
@@ -123,16 +103,13 @@ proc test_empty_complaint { cmd msg } {
 
 proc test_empty_complaints { } {
 
-    test_empty_complaint "call clear_complaints(0)" \
-           "empty non-verbose clear"
-    test_empty_complaint "call clear_complaints(1)" \
-           "empty verbose clear"
+    test_empty_complaint "call clear_complaints()" \
+           "clear complaints"
 
     return 0
 }
 
 do_self_tests captured_command_loop {
     test_initial_complaints
-    test_short_complaints
     test_empty_complaints
 }
This page took 0.02922 seconds and 4 git commands to generate.