Fix test names starting with uppercase output by basic functions
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / range-stepping.exp
index 79667ba7b7b8b8b96b83b6cf0de7ac5cda478a37..9ed92c78219fe3f40dae72f4e09a13f732a045b1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2013-2015 Free Software Foundation, Inc.
+# Copyright 2013-2016 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
@@ -23,7 +23,7 @@ if { [prepare_for_testing $testfile.exp $testfile $srcfile {debug}] } {
 }
 
 if ![runto_main] {
-    fail "Can't run to main"
+    fail "can't run to main"
     return -1
 }
 
@@ -172,42 +172,44 @@ with_test_prefix "loop 2" {
 # Check that range stepping works well even when it is interrupted by
 # ctrl-c.
 
-with_test_prefix "interrupt" {
-    gdb_test_no_output "set debug remote 1"
-
-    send_gdb "next\n"
-    sleep 1
-    send_gdb "\003"
-
-    # GDB should send one vCont;r and receive one stop reply for
-    # SIGINT:
-    # --> vCont;rSTART,END  (range step)
-    # <-- T02  (SIGINT)
-
-    set vcont_r_counter 0
-
-    set test "send ctrl-c to GDB"
-    gdb_test_multiple "" $test {
-       -re "vCont;r\[^\r\n\]*\.\.\." {
-           incr vcont_r_counter
-           exp_continue
+if ![target_info exists gdb,nointerrupts] {
+    with_test_prefix "interrupt" {
+       gdb_test_no_output "set debug remote 1"
+
+       send_gdb "next\n"
+       sleep 1
+       send_gdb "\003"
+
+       # GDB should send one vCont;r and receive one stop reply for
+       # SIGINT:
+       # --> vCont;rSTART,END  (range step)
+       # <-- T02  (SIGINT)
+
+       set vcont_r_counter 0
+
+       set test "send ctrl-c to GDB"
+       gdb_test_multiple "" $test {
+           -re "vCont;r\[^\r\n\]*\.\.\." {
+               incr vcont_r_counter
+               exp_continue
+           }
+           -re "Program received signal SIGINT.*$gdb_prompt $" {
+               pass $test
+           }
        }
-       -re "Program received signal SIGINT.*$gdb_prompt $" {
-           pass $test
+       gdb_test_no_output "set debug remote 0"
+
+       # Check the number of 'vCont;r' packets.
+       if { $vcont_r_counter == 1 } {
+           pass "${test}: 1 vCont;r"
+       } else {
+           fail "${test}: 1 vCont;r"
        }
-    }
-    gdb_test_no_output "set debug remote 0"
 
-    # Check the number of 'vCont;r' packets.
-    if { $vcont_r_counter == 1 } {
-       pass "${test}: 1 vCont;r"
-    } else {
-       fail "${test}: 1 vCont;r"
+       # Break the loop earlier and continue range stepping.
+       gdb_test "set variable c = 0"
+       exec_cmd_expect_vCont_count "next" 1
     }
-
-    # Break the loop earlier and continue range stepping.
-    gdb_test "set variable c = 0"
-    exec_cmd_expect_vCont_count "next" 1
 }
 
 # Check that range stepping doesn't break software watchpoints.  With
This page took 0.034866 seconds and 4 git commands to generate.