diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-22 14:49:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-10 08:21:46 -0700 |
commit | 450d26c851c15e08249fc0fdeb3a06b31ac4fcfd (patch) | |
tree | 828224a9e444e3e3a0ea672ddb88cad7eb4c5ef6 /gdb/testsuite/gdb.threads/hand-call-in-threads.exp | |
parent | 1cd0716eb199963ec63fcafa94699d14bbf45e01 (diff) | |
download | binutils-gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.tar.gz |
Use require with target_info
This changes many tests to use 'require' when checking target_info.
In a few spots, the require is hoisted to the top of the file, to
avoid doing any extra work when the test is going to be skipped
anyway.
Diffstat (limited to 'gdb/testsuite/gdb.threads/hand-call-in-threads.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp index 336199112b0..58039ddd30e 100644 --- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp +++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp @@ -19,15 +19,12 @@ set NR_THREADS 4 standard_testfile -if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } { - return -1 -} - # Some targets can't do function calls, so don't even bother with this # test. -if [target_info exists gdb,cannot_call_functions] { - unsupported "this target can not call functions" - return +require {!target_info exists gdb,cannot_call_functions} + +if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } { + return -1 } proc get_dummy_frame_number { } { |