diff options
author | Tom de Vries <tdevries@suse.de> | 2023-07-22 11:00:25 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-07-22 11:00:25 +0200 |
commit | 09075d5d4a2b6dbbc3ca20e2b963799b4c5d638d (patch) | |
tree | 26a643e15fa799633626c51e1b1812edd6442871 /gdb/testsuite/gdb.arch | |
parent | 6fbe38ce1170415bc1d2fe596911a056091949de (diff) | |
download | gdb-09075d5d4a2b6dbbc3ca20e2b963799b4c5d638d.zip gdb-09075d5d4a2b6dbbc3ca20e2b963799b4c5d638d.tar.gz gdb-09075d5d4a2b6dbbc3ca20e2b963799b4c5d638d.tar.bz2 |
[gdb/testsuite] Use proc readnow in two test-cases
Use "require !readnow" in two test-cases, instead of the written-out variant.
Tested on x86_64-linux, with target boards unix and readnow.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r-- | gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp index 0cf7f27..17f8d68 100644 --- a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp +++ b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp @@ -17,6 +17,10 @@ # syscall is active. But some active syscalls keep PC pointing to the SVC # instruction itself. +# See if we have target board readnow.exp or similar. We're using +# --readnever, which is not allowed in combination with --readnow. +require !readnow + standard_testfile if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ @@ -24,13 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ return } -# See if we have target board readnow.exp or similar. -if { [lsearch -exact $GDBFLAGS -readnow] != -1 \ - || [lsearch -exact $GDBFLAGS --readnow] != -1 } { - untested "--readnever not allowed in combination with --readnow" - return -1 -} - save_vars { GDBFLAGS } { append GDBFLAGS " --readnever" if { [clean_restart ${binfile}] == -1 } { |