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.mi | |
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.mi')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-syn-frame.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-threads-interrupt.exp | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.exp b/gdb/testsuite/gdb.mi/mi-syn-frame.exp index 5b3e60f..40df312 100644 --- a/gdb/testsuite/gdb.mi/mi-syn-frame.exp +++ b/gdb/testsuite/gdb.mi/mi-syn-frame.exp @@ -16,10 +16,7 @@ # Test MI output with synthetic frames on the stack (call dummies, # signal handlers). -if [target_info exists gdb,nosignals] { - verbose "Skipping mi-syn-frame.exp because of nosignals." - return -} +require {!target_info exists gdb,nosignals} load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp index 149940d..bbb8219 100644 --- a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp +++ b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp @@ -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 [target_info exists gdb,nointerrupts] { - verbose "Skipping mi-threads-interrupt.exp because of nointerrupts." - return -} +require {!target_info exists gdb,nointerrupts} load_lib mi-support.exp set MIFLAGS "-i=mi" |