aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-15 16:47:05 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:56 -0700
commitec1300f6ea8dfc432fae1c5d68ea1389d2d126a7 (patch)
tree43346d8adb3baa00730e6902a9bb8d86e71549d1 /gdb/testsuite/gdb.cp
parent465ee8475ef28147460fbe241c3b1dcd82d75fc4 (diff)
downloadgdb-ec1300f6ea8dfc432fae1c5d68ea1389d2d126a7.zip
gdb-ec1300f6ea8dfc432fae1c5d68ea1389d2d126a7.tar.gz
gdb-ec1300f6ea8dfc432fae1c5d68ea1389d2d126a7.tar.bz2
Use require target_can_use_run_cmd
This changes some tests to use "require target_can_use_run_cmd".
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r--gdb/testsuite/gdb.cp/annota2.exp4
-rw-r--r--gdb/testsuite/gdb.cp/annota3.exp4
2 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp
index 160d269..5116355 100644
--- a/gdb/testsuite/gdb.cp/annota2.exp
+++ b/gdb/testsuite/gdb.cp/annota2.exp
@@ -32,9 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
# This testcase cannot use runto_main because of the different prompt
# we get when using annotation level 2.
#
-if ![target_can_use_run_cmd] {
- return 0
-}
+require target_can_use_run_cmd
set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n"
set frames_invalid "\r\n\032\032frames-invalid\r\n"
diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota3.exp
index 5a5f3ff..5d8c152 100644
--- a/gdb/testsuite/gdb.cp/annota3.exp
+++ b/gdb/testsuite/gdb.cp/annota3.exp
@@ -32,9 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
# This testcase cannot use runto_main because of the different prompt
# we get when using annotation level 2.
#
-if ![target_can_use_run_cmd] {
- return 0
-}
+require target_can_use_run_cmd
#
# line number where we need to stop in main