Use require !gdb_debug_enabled
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 23:42:16 +0000 (16:42 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require !gdb_debug_enabled".

18 files changed:
gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp
gdb/testsuite/gdb.base/debug-expr.exp
gdb/testsuite/gdb.base/foll-fork.exp
gdb/testsuite/gdb.base/fork-print-inferior-events.exp
gdb/testsuite/gdb.base/gdb-sigterm.exp
gdb/testsuite/gdb.base/gdbinit-history.exp
gdb/testsuite/gdb.base/osabi.exp
gdb/testsuite/gdb.base/page-logging.exp
gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
gdb/testsuite/gdb.base/style-logging.exp
gdb/testsuite/gdb.base/ui-redirect.exp
gdb/testsuite/gdb.fortran/debug-expr.exp
gdb/testsuite/gdb.gdb/unittest.exp
gdb/testsuite/gdb.mi/new-ui-mi-sync.exp
gdb/testsuite/gdb.mi/user-selected-context-sync.exp
gdb/testsuite/gdb.threads/check-libthread-db.exp
gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
gdb/testsuite/gdb.threads/stepi-random-signal.exp

index 00a4fe5af5b46fe2e9fe893ecca4d2e778275112..0330cfa345a0f1acce369ff36b7eaa5e06d0e994 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index a2fbf7470b12678c337f7d1f82cc00529b1f01b0..c7e2afce5a013934eec621b7d3544c7d203252e3 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile .c
 
index 59a664952c3331902a8aed4a37c4959d8a4d6773..51dfcce7ff5d40abd8bd6347452c431d44d2ed43 100644 (file)
 
 # Test relies on checking follow-fork output. Do not run if gdb debug is
 # enabled as it will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index 1b0ff149b314c0d7a26aabb78bf08de14991705e..33ac172c53b90ca586ee8683ba1cc62cf4b44c3c 100644 (file)
@@ -24,10 +24,7 @@ require !use_gdb_stub
 
 # Test relies on checking follow-fork output. Do not run if gdb debug is
 # enabled as it will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index d2392394aafc87ff04b9042111fe9a0ceaac7bce..e9dc5f2ea2720381e5bd4dc2aeb35b1322732d77 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index b4f0d1b6eef23dc45ed1a1d70f1f30ad224bbd0d..46d76b0e2390a38c0cbbf25a2c95656bcfe07eba 100644 (file)
 # local machine.
 
 # Do not run if gdb debug is enabled - it interferes with the command history.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 if { [is_remote host] } {
     unsupported "can't set environment variables on remote host"
index e9f761902b550699008b6171888e381272907a31..a412d932f7d75d660a2b5874d19eabcf2634586d 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 # Test that choosing "set osabi none" really requests a gdbarch with no osabi.
 
index a45c5d5c90227480ffeea0dffdc79286d58e641c..ec54ba12c65375644feffd40a5db56fba0babe43 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Do not run if gdb debug is enabled as it will interfere with log redirect.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 gdb_start
 
index 1bf2e1393267b8c9159fa8ed498747bb60e5099e..85976c211dd9b9f0eb0b9481b5d61eb1c1b10e1e 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index 75b07086d36a64241f40cac3924f9f38c8fe782c..dcf13575a17304de5e749c98a14b4eaf5bbb9fb0 100644 (file)
 # Test that logging does not style.
 
 # Do not run if gdb debug is enabled as it will interfere with log redirect.
-if {[gdb_debug_enabled]} {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 if {[is_remote host]} {
     untested "does not work on remote host"
index 2c9fc1aec77e5bab073e19846e0d8c364ff67e33..c0ba4f11809e409cba7aba0d1106f7deaaa628fb 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Do not run if gdb debug is enabled as it will interfere with log redirect.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 if { [prepare_for_testing "failed to prepare" ui-redirect start.c] } {
     return -1
index 75324ac4607a73721526f06fa6b9200125cda90e..2a45214d89fa638d4b1c74d5df041635388a4f25 100644 (file)
@@ -19,10 +19,7 @@ require !skip_fortran_tests
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile .f90
 load_lib fortran.exp
index c8a68469767c19dcf31ad7067b910203d4ed5a67..ff532856e40ccb2857be24f45542a68757543f08 100644 (file)
 
 # Do not run if gdb debug is enabled as maintenance output will be
 # redirected to the log files.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 load_lib completion-support.exp
 
index e9a853941302e1882d494fc33546f724395a33a1..07b316c8ce928c879e4b4dfa703a4e56c04db809 100644 (file)
 # stops again.  See PR gdb/20418.
 
 # Do not run if gdb debug is enabled as it doesn't work for separate-mi-tty.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 load_lib mi-support.exp
 
index 55dab46fba853bd74ed2f7ee7171a21deb40ffa0..91ca9b16bf85829bd7dfa9fd888d195ad949124f 100644 (file)
 #   are using all-stop, or running, if we are using non-stop.
 
 # Do not run if gdb debug is enabled as it doesn't work for separate-mi-tty.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 load_lib mi-support.exp
 
index c93706e381885530f6d7f6e08e99c408d5a20097..2324b7f27e68012a15ef5e029bd259eaf6c567d1 100644 (file)
@@ -20,10 +20,7 @@ if {[target_info gdb_protocol] != "" || ![istarget *-linux*]} {
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 
index 0bb26f36cbb8427bbf7a44e57d61a018d420547f..65ecdcd5e33a5a57bfb99a324b48eeed6dbb2b32 100644 (file)
@@ -20,9 +20,7 @@
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    return
-}
+require !gdb_debug_enabled
 
 standard_testfile
 set executable ${testfile}
index 113e0f737eed8bb59be6a19d8354a8cd384f9c6f..bccc319b6f5857497a159a0bf3cce5715822a8c5 100644 (file)
 
 # Test relies on checking gdb debug output. Do not run if gdb debug is
 # enabled as any debug will be redirected to the log.
-if [gdb_debug_enabled] {
-    untested "debug is enabled"
-    return 0
-}
+require !gdb_debug_enabled
 
 standard_testfile
 set executable ${testfile}