gdb: add completion handler for "handle" and "signal"
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / completion.exp
index 9b9459c55ee74f2aeac2218afb44e18c24474aff..ccdc199e670ba754af92a09276491949bfe6f7ea 100644 (file)
@@ -363,6 +363,32 @@ gdb_test_multiple "" "$test" {
     }
 }
 
+set test "complete 'handle signal'"
+send_gdb "handle sigq\t"
+gdb_test_multiple "" "$test" {
+    -re "^handle sigq\b\b\b\bSIGQUIT $" {
+       send_gdb "\n"
+       gdb_test_multiple "" "$test" {
+           -re "SIGQUIT.*Quit.*$gdb_prompt $" {
+               pass "$test"
+           }
+       }
+    }
+}
+
+set test "complete 'handle keyword'"
+send_gdb "handle nos\t"
+gdb_test_multiple "" "$test" {
+    -re "^handle nostop $" {
+       send_gdb "\n"
+       gdb_test_multiple "" "$test" {
+           -re "$gdb_prompt $" {
+               pass "$test"
+           }
+       }
+    }
+}
+
 
 # These tests used to try completing the shorter "p b-a".
 # Unfortunately, on some systems, there are .o files in system
This page took 0.024551 seconds and 4 git commands to generate.