Skip tests that send ctrl-c to GDB if nointerrupts target property is set.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.gdb / selftest.exp
index 8b1298f3c1087a0fb2ba9a71a66de268a4a01cc1..e8644fbfd16f1ab15b8b471f6d4831683315f579 100644 (file)
@@ -433,17 +433,19 @@ proc test_with_self { executable } {
     }
 
     # kill the xgdb process
-    set description "send ^C to child process"
-    send_gdb "\003"
-    gdb_expect {
-       -re "Program received signal SIGINT.*$gdb_prompt $" {
-           pass "$description"
-       }
-       -re ".*$gdb_prompt $" {
-           fail "$description"
-       }
-       timeout {
-           fail "$description (timeout)"
+    if ![target_info exists gdb,nointerrupts] {
+       set description "send ^C to child process"
+       send_gdb "\003"
+       gdb_expect {
+           -re "Program received signal SIGINT.*$gdb_prompt $" {
+               pass "$description"
+           }
+           -re ".*$gdb_prompt $" {
+               fail "$description"
+           }
+           timeout {
+               fail "$description (timeout)"
+           }
        }
     }
     
This page took 0.02437 seconds and 4 git commands to generate.