Use require supports_reverse

This changes some tests to use "require supports_reverse".
This commit is contained in:
Tom Tromey
2022-12-13 15:04:18 -07:00
parent fc5ab4bc44
commit 5954db83d1
30 changed files with 30 additions and 101 deletions

View File

@ -27,9 +27,7 @@
# but to verify the correct output response to MI operations.
#
if ![supports_reverse] {
return
}
require supports_reverse
load_lib mi-support.exp
set MIFLAGS "-i=mi"

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 ![supports_reverse] {
return
}
require supports_reverse
set opts {}
standard_testfile .S

View File

@ -16,9 +16,7 @@
# This file is part of the GDB testsuite. It tests reverse debugging
# with breakpoints.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -16,9 +16,7 @@
# This file is part of the GDB testsuite. It tests stepping over
# consecutive instructions in reverse.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -16,9 +16,7 @@
# This file is part of the GDB testsuite. It tests 'finish' with
# reverse debugging.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile finish-reverse.c
set precsave [standard_output_file finish.precsave]

View File

@ -40,9 +40,7 @@
# addition to non-PowerPC systems. On non-PowerPC systems, the GEP and LEP
# are the same.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -16,9 +16,7 @@
# This file is part of the GDB testsuite. It tests 'finish' with
# reverse debugging.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests fstatat syscall for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests getrandom syscall for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests getresuid/getresgid syscalls for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,10 +19,7 @@
# This test tests some i386 general instructions for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
if {![is_x86_like_target]} {
verbose "Skipping i386 reverse tests."

View File

@ -19,10 +19,7 @@
# This test tests some i386 general instructions for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
if {![istarget "*86*-*linux*"]} {
verbose "Skipping i386 reverse tests."

View File

@ -13,12 +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 ![supports_reverse] {
return
}
# Check if start command is supported.
require !use_gdb_stub
require supports_reverse !use_gdb_stub
standard_testfile

View File

@ -35,9 +35,7 @@
# Test forward replay
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile .c ms1.c

View File

@ -40,9 +40,7 @@
# addition to non-PowerPC systems. On non-PowerPC systems, the GEP and LEP
# are the same.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests pipe syscall for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests readv syscall for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests socketpair and recvmsg syscalls for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

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 {![supports_reverse] || ![supports_process_record]} {
return
}
require supports_reverse supports_process_record
standard_testfile

View File

@ -17,9 +17,7 @@
# This test tests s390 MVCLE opcode for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
if { ! [istarget "s390*-*-*"] } {
verbose "Skipping s390 MVCLE instruction recording tests."

View File

@ -18,10 +18,7 @@ if [target_info exists gdb,nosignals] {
return
}
if ![supports_reverse] {
return
}
require supports_reverse
gdb_exit
gdb_start

View File

@ -18,10 +18,7 @@ if [target_info exists gdb,nosignals] {
return
}
if ![supports_reverse] {
return
}
require supports_reverse
gdb_exit
gdb_start

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 ![supports_reverse] {
return
}
require supports_reverse
standard_testfile ".S" "${gdb_test_file_name}-nodebug.S"
set executable ${testfile}

View File

@ -16,12 +16,7 @@
# This file is part of the GDB testsuite. It tests reverse debugging
# with shared libraries.
if ![supports_reverse] {
return
}
if {[skip_shlib_tests]} {
return
}
require supports_reverse !skip_shlib_tests
standard_testfile
set lib1file "shr1"

View File

@ -13,10 +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 { ![supports_reverse] } {
untested "target does not support record"
return -1
}
require supports_reverse
standard_testfile

View File

@ -20,9 +20,7 @@
# Test step and next in reverse
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -19,9 +19,7 @@
# This test tests time syscall for reverse execution.
#
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -16,9 +16,7 @@
# This file is part of the GDB testsuite. It tests 'until' and
# 'advance' in reverse debugging.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile .c ur1.c

View File

@ -21,9 +21,7 @@
# Also serves as regression test for gdb/19187 (recording across a
# fork).
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile

View File

@ -18,9 +18,7 @@
# with watchpoints.
if ![supports_reverse] {
return
}
require supports_reverse
standard_testfile