Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use require _skip_ tests #41

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8154f81
Don't use ensure_gdb_index with require
tromey Dec 15, 2022
31075d5
Change 'require' to accept a list of predicates
tromey Dec 13, 2022
c874eff
Use unsupported in 'require'
tromey Dec 13, 2022
6fef88f
Use require supports_reverse
tromey Dec 13, 2022
4814372
Use require supports_process_record
tromey Dec 13, 2022
9aa78f9
Use require dwarf2_support
tromey Dec 13, 2022
afc7d1c
Use require is_x86_like_target
tromey Dec 13, 2022
c12793b
Use require skip_cplus_tests
tromey Dec 13, 2022
a45f63e
Use require skip_shlib_tests
tromey Dec 13, 2022
36295d8
Use require skip_dlmopen_tests
tromey Dec 13, 2022
819d04f
Use require skip_stl_tests
tromey Dec 13, 2022
7a1a4e0
Use require skip_rust_tests
tromey Dec 13, 2022
20a6471
Use require skip_fortran_tests
tromey Dec 13, 2022
11a828f
Use require skip_ada_tests
tromey Dec 13, 2022
5648684
Use require skip_go_tests
tromey Dec 13, 2022
1b4c741
Use require skip_d_tests
tromey Dec 13, 2022
4e8e847
Use require skip_ctf_tests
tromey Dec 14, 2022
ac1ce63
Use require skip_hw_watchpoint_tests
tromey Dec 14, 2022
6da9714
Use require skip_ifunc_tests
tromey Dec 14, 2022
c31ed4a
Use require skip_aarch64_sve_tests
tromey Dec 14, 2022
3dff76e
Use require skip_btrace_tests
tromey Dec 14, 2022
8473db5
Use require skip_btrace_tests
tromey Dec 14, 2022
467a41a
Use require skip_avx_*
tromey Dec 14, 2022
5240670
Use require support_displaced_stepping
tromey Dec 14, 2022
144de04
Use require is_aarch64_target
tromey Dec 14, 2022
0ddb49c
Use require is_aarch32_target
tromey Dec 14, 2022
87da3ab
Use require is_amd64_regs_target
tromey Dec 14, 2022
a9e1286
Use require is_elf_target
tromey Dec 14, 2022
4acf947
Use require can_single_step_to_signal_handler
tromey Dec 14, 2022
1cd93a1
Use require supports_get_siginfo_type
tromey Dec 14, 2022
ca5b0b6
Use require support_go_compile
tromey Dec 14, 2022
5533fdf
Use require use_gdb_stub
tromey Dec 14, 2022
0883e51
Use require can_spawn_for_attach
tromey Dec 14, 2022
429aff5
Use require isnative
tromey Dec 14, 2022
a0e643f
Use require skip_gdbserver_tests
tromey Dec 14, 2022
7359fa7
Use require skip_shlib_tests
tromey Dec 14, 2022
739ab8b
Use require is_c_compiler_gcc
tromey Dec 14, 2022
2273f5b
Use require gdb_debug_enabled
tromey Dec 14, 2022
0e3ec04
Use require gdb_skip_xml_test
tromey Dec 15, 2022
19c1fa3
Use require gdb_trace_common_supports_arch
tromey Dec 15, 2022
ce8f602
Use require skip_perf_tests
tromey Dec 15, 2022
7d65cf9
Use require skip_opencl_tests
tromey Dec 15, 2022
d4505d2
Use require target_can_use_run_cmd
tromey Dec 15, 2022
3c8221d
Use require using_fission
tromey Dec 15, 2022
cf22e1a
Use require skip_debuginfod_tests
tromey Dec 16, 2022
bf67621
Use require gnat_runtime_has_debug_info
tromey Dec 16, 2022
4717feb
Use require mi_skip_python_tests
lienze Dec 16, 2022
56c55d3
Use require skip_inline_var_tests
lienze Dec 16, 2022
6fe7251
Use require supports_fcf_protection
lienze Dec 16, 2022
2275d62
Use require skip_inline_frame_tests
lienze Dec 16, 2022
55058f8
Use require skip_libstdcxx_probe_tests
lienze Dec 16, 2022
4e9aaa9
Merge branch 'tromey:rewrite-require' into rewrite-require
lienze Dec 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.arch/i386-prologue-skip-cf-protection.exp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ if { ![istarget x86_64-*-*] && ![istarget i?86-*-*] } {
return
}

if { ![supports_fcf_protection] } {
untested "-fcf-protection not supported"
return
}
require supports_fcf_protection

set opts {debug additional_flags=-fcf-protection=full}

Expand Down
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.cp/exceptprint.exp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ if {![runto_main]} {
return -1
}

if {[skip_libstdcxx_probe_tests]} {
untested "could not find libstdc++ stap probe"
return -1
}
require !skip_libstdcxx_probe_tests

proc do_continue_to_catchpoint {name} {
global gdb_prompt
Expand Down
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ if {![runto_main]} {
return -1
}

if { [skip_libstdcxx_probe_tests] == 0 } {
untested "Have libstdc++ stap probe"
return -1
}
require skip_libstdcxx_probe_tests

gdb_test "catch throw" "Catchpoint $decimal \\(throw\\)" \
"catch throw"
Expand Down
4 changes: 1 addition & 3 deletions gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ if ![runto_main] {
}

get_debug_format
if { [skip_inline_frame_tests] } {
return -1
}
require !skip_inline_frame_tests

# Set a break-point in inline function bar, in a CU for which the partial
# symtab has not been expanded.
Expand Down
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.opt/inline-bt.exp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
runto_main

get_debug_format
if { [skip_inline_frame_tests] } {
untested "skipping inline frame tests"
return
}
require !skip_inline_frame_tests

set line1 [gdb_get_line_number "set breakpoint 1 here" ${srcfile2}]
gdb_breakpoint $srcfile2:$line1
Expand Down
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.opt/inline-cmds.exp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ gdb_test_no_output "set listsize 1"
runto_main

get_debug_format
if { [skip_inline_frame_tests] } {
untested "skipping inline frame tests"
return
}
require !skip_inline_frame_tests

# First, check that the things we expected to be inlined really were,
# and those that shouldn't be weren't.
Expand Down
5 changes: 1 addition & 4 deletions gdb/testsuite/gdb.opt/inline-locals.exp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
runto_main

get_debug_format
if { [skip_inline_var_tests] } {
untested inline-bt.exp
return
}
require !skip_inline_var_tests

set no_frames [skip_inline_frame_tests]

Expand Down
2 changes: 1 addition & 1 deletion gdb/testsuite/gdb.python/py-mi-events.exp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
return -1
}

if { [mi_skip_python_tests] } { return }
require !mi_skip_python_tests

set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]

Expand Down
2 changes: 1 addition & 1 deletion gdb/testsuite/gdb.python/py-mi-objfile.exp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
return -1
}

if { [mi_skip_python_tests] } { return }
require !mi_skip_python_tests

# Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
# Care is taken to put it in the same directory as the binary so that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" }
mi_clean_restart $binfile

# Skip all tests if Python scripting is not enabled.
if { [mi_skip_python_tests] } { continue }
require !mi_skip_python_tests

set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
mi_gdb_test "source ${pyfile}" \
Expand Down