Use require target_can_use_run_cmd

This changes some tests to use "require target_can_use_run_cmd".
This commit is contained in:
Tom Tromey 2022-12-15 16:47:05 -07:00
parent 465ee8475e
commit ec1300f6ea
6 changed files with 6 additions and 18 deletions

View File

@ -19,9 +19,7 @@
# 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"

View File

@ -19,9 +19,7 @@
# 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
#

View File

@ -20,9 +20,7 @@
# part of this test.
# Bail out if the target can't use the 'run' command.
if ![target_can_use_run_cmd] {
return 0
}
require target_can_use_run_cmd
standard_testfile

View File

@ -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"

View File

@ -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

View File

@ -13,9 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if ![target_can_use_run_cmd] {
return
}
require target_can_use_run_cmd
# Until "catch exec" is implemented on other targets...
#