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/manythreads.exp | |
parent | 1cd0716eb199963ec63fcafa94699d14bbf45e01 (diff) | |
download | gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.zip gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.tar.gz gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.tar.bz2 |
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/manythreads.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.exp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp index da3f66a..5a17651 100644 --- a/gdb/testsuite/gdb.threads/manythreads.exp +++ b/gdb/testsuite/gdb.threads/manythreads.exp @@ -17,10 +17,7 @@ # This file was written by Jeff Johnston. (jjohnstn@redhat.com) # This test requires sending ^C to interrupt the running target. -if [target_info exists gdb,nointerrupts] { - verbose "Skipping manythreads.exp because of nointerrupts." - return -} +require {!target_info exists gdb,nointerrupts} standard_testfile |