Rename to allow_python_tests
authorTom Tromey <tom@tromey.com>
Sun, 8 Jan 2023 18:46:05 +0000 (11:46 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:58 +0000 (13:18 -0700)
This changes skip_python_tests to invert the sense, and renames it to
allow_python_tests.

116 files changed:
gdb/testsuite/gdb.ada/array_of_variant.exp
gdb/testsuite/gdb.ada/pp-rec-component.exp
gdb/testsuite/gdb.ada/py_range.exp
gdb/testsuite/gdb.ada/py_taft.exp
gdb/testsuite/gdb.ada/variant.exp
gdb/testsuite/gdb.arch/i386-mpx.exp
gdb/testsuite/gdb.base/default.exp
gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
gdb/testsuite/gdb.base/jit-reader.exp
gdb/testsuite/gdb.base/non-lazy-array-index.exp
gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
gdb/testsuite/gdb.base/style.exp
gdb/testsuite/gdb.dwarf2/symtab-producer.exp
gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp
gdb/testsuite/gdb.gdb/python-helper.exp
gdb/testsuite/gdb.multi/multi-target-info-inferiors.exp
gdb/testsuite/gdb.multi/tids.exp
gdb/testsuite/gdb.python/compare-enum-type.exp
gdb/testsuite/gdb.python/flexible-array-member.exp
gdb/testsuite/gdb.python/lib-types.exp
gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
gdb/testsuite/gdb.python/py-arch-reg-groups.exp
gdb/testsuite/gdb.python/py-arch-reg-names.exp
gdb/testsuite/gdb.python/py-arch.exp
gdb/testsuite/gdb.python/py-as-string.exp
gdb/testsuite/gdb.python/py-auto-load-chaining.exp
gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp
gdb/testsuite/gdb.python/py-bad-printers.exp
gdb/testsuite/gdb.python/py-block.exp
gdb/testsuite/gdb.python/py-bp-locations.exp
gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
gdb/testsuite/gdb.python/py-breakpoint.exp
gdb/testsuite/gdb.python/py-caller-is.exp
gdb/testsuite/gdb.python/py-charset.exp
gdb/testsuite/gdb.python/py-cmd.exp
gdb/testsuite/gdb.python/py-completion.exp
gdb/testsuite/gdb.python/py-connection-removed.exp
gdb/testsuite/gdb.python/py-connection.exp
gdb/testsuite/gdb.python/py-disasm.exp
gdb/testsuite/gdb.python/py-doc-reformat.exp
gdb/testsuite/gdb.python/py-error.exp
gdb/testsuite/gdb.python/py-event-load.exp
gdb/testsuite/gdb.python/py-events.exp
gdb/testsuite/gdb.python/py-evsignal.exp
gdb/testsuite/gdb.python/py-evthreads.exp
gdb/testsuite/gdb.python/py-explore-cc.exp
gdb/testsuite/gdb.python/py-explore.exp
gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp
gdb/testsuite/gdb.python/py-finish-breakpoint.exp
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
gdb/testsuite/gdb.python/py-format-address.exp
gdb/testsuite/gdb.python/py-format-string.exp
gdb/testsuite/gdb.python/py-frame-args.exp
gdb/testsuite/gdb.python/py-frame-inline.exp
gdb/testsuite/gdb.python/py-frame.exp
gdb/testsuite/gdb.python/py-framefilter-addr.exp
gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp
gdb/testsuite/gdb.python/py-framefilter.exp
gdb/testsuite/gdb.python/py-function.exp
gdb/testsuite/gdb.python/py-inferior-leak.exp
gdb/testsuite/gdb.python/py-inferior.exp
gdb/testsuite/gdb.python/py-infthread.exp
gdb/testsuite/gdb.python/py-label-symbol-value.exp
gdb/testsuite/gdb.python/py-lazy-string.exp
gdb/testsuite/gdb.python/py-linetable.exp
gdb/testsuite/gdb.python/py-lookup-type.exp
gdb/testsuite/gdb.python/py-mi-events.exp
gdb/testsuite/gdb.python/py-mi-objfile.exp
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
gdb/testsuite/gdb.python/py-nested-maps.exp
gdb/testsuite/gdb.python/py-objfile-script.exp
gdb/testsuite/gdb.python/py-objfile.exp
gdb/testsuite/gdb.python/py-parameter.exp
gdb/testsuite/gdb.python/py-pending-frame-level.exp
gdb/testsuite/gdb.python/py-pp-integral.exp
gdb/testsuite/gdb.python/py-pp-maint.exp
gdb/testsuite/gdb.python/py-pp-re-notag.exp
gdb/testsuite/gdb.python/py-pp-registration.exp
gdb/testsuite/gdb.python/py-prettyprint.exp
gdb/testsuite/gdb.python/py-progspace.exp
gdb/testsuite/gdb.python/py-prompt.exp
gdb/testsuite/gdb.python/py-rbreak.exp
gdb/testsuite/gdb.python/py-record-btrace-threads.exp
gdb/testsuite/gdb.python/py-record-btrace.exp
gdb/testsuite/gdb.python/py-record-full.exp
gdb/testsuite/gdb.python/py-recurse-unwind.exp
gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
gdb/testsuite/gdb.python/py-section-script.exp
gdb/testsuite/gdb.python/py-send-packet.exp
gdb/testsuite/gdb.python/py-shared.exp
gdb/testsuite/gdb.python/py-source-styling.exp
gdb/testsuite/gdb.python/py-startup-opt.exp
gdb/testsuite/gdb.python/py-strfns.exp
gdb/testsuite/gdb.python/py-symbol.exp
gdb/testsuite/gdb.python/py-symtab.exp
gdb/testsuite/gdb.python/py-sync-interp.exp
gdb/testsuite/gdb.python/py-template.exp
gdb/testsuite/gdb.python/py-thrhandle.exp
gdb/testsuite/gdb.python/py-type.exp
gdb/testsuite/gdb.python/py-typeprint.exp
gdb/testsuite/gdb.python/py-unwind-inline.exp
gdb/testsuite/gdb.python/py-unwind-maint.exp
gdb/testsuite/gdb.python/py-unwind-user-regs.exp
gdb/testsuite/gdb.python/py-unwind.exp
gdb/testsuite/gdb.python/py-value-cc.exp
gdb/testsuite/gdb.python/py-value.exp
gdb/testsuite/gdb.python/py-xmethods.exp
gdb/testsuite/gdb.python/tui-window-disabled.exp
gdb/testsuite/gdb.python/tui-window-names.exp
gdb/testsuite/gdb.python/tui-window.exp
gdb/testsuite/gdb.rust/pp.exp
gdb/testsuite/gdb.rust/simple.exp
gdb/testsuite/gdb.server/server-kill-python.exp
gdb/testsuite/gdb.server/server-pipe.exp
gdb/testsuite/gdb.threads/tls.exp
gdb/testsuite/lib/gdb.exp

index 6110ec69b66ec5727c7162e4904d466eb8e6dc4f..532fb1c1e291186e28d2328e9e0cadbf70a057b7 100644 (file)
@@ -78,7 +78,7 @@ foreach_with_prefix scenario {all minimal} {
        "print second array slice"
 
     # This is only supported for the DWARF encoding.
-    if {$scenario == "minimal" && ![skip_python_tests]} {
+    if {$scenario == "minimal" && [allow_python_tests]} {
        gdb_test_no_output \
            "python o = gdb.parse_and_eval('objects')" \
            "fetch value for python"
index c77ee59bf379c28ac0abbba42a01f83f096d4778..2678195d38e2275e463a10ba845721ef660b995c 100644 (file)
@@ -15,7 +15,7 @@
 
 load_lib "ada.exp"
 
-require allow_ada_tests !skip_python_tests
+require allow_ada_tests allow_python_tests
 
 standard_ada_testfile foo
 
index 83474b459c99d692925a506a2a79c04e9ad26897..2972db218271b3e00bbb0e6506f791ef8dcff598 100644 (file)
@@ -16,7 +16,7 @@
 load_lib "ada.exp"
 load_lib gdb-python.exp
 
-require allow_ada_tests !skip_python_tests
+require allow_ada_tests allow_python_tests
 
 standard_ada_testfile foo
 
index 97c33e47da3137438b2f5442d9e54fa3d65bad9f..0ce9df72005797779a3b83a8cccc463500fbc50f 100644 (file)
@@ -16,7 +16,7 @@
 load_lib "ada.exp"
 load_lib gdb-python.exp
 
-require allow_ada_tests !skip_python_tests
+require allow_ada_tests allow_python_tests
 
 standard_ada_testfile main
 
index 414aed6f0d795ee4a9b43ae96dccf9667c526641..620761c40edbc42776b614fca9619a4fce2a1927 100644 (file)
@@ -48,7 +48,7 @@ foreach_with_prefix scenario {none all minimal} {
        " = \\(one => 3, two => 7, str => \"zzz\", onevalue => 33, str2 => \"qqqqqqq\", twovalue => 88\\)"
 
     # This is only supported for the DWARF encoding.
-    if {$scenario == "minimal" && ![skip_python_tests]} {
+    if {$scenario == "minimal" && [allow_python_tests]} {
        gdb_test_no_output \
            "python t = gdb.lookup_type('nested_and_variable')" \
            "fetch type for python"
index d211f7be38a38721a9f5423baf5c88ffb9be5ece..96cd8fe90922fe19103288c467d800340f1e1269 100644 (file)
@@ -130,7 +130,7 @@ gdb_test "print \$bndstatus.status.error" "= 2" "bndstatus error is 2\
 after a failure on allocating an entry"
 
 # Going to test the python extension for lenght.
-if { [skip_python_tests] } { continue }
+if { ![allow_python_tests] } { continue }
 # Verify if size is right
 set test_string ".*\\\: size 0x11.*"
 gdb_test "print /x \$bnd0 = {0x10, 0x20}" "$test_string" "verify size for bnd0"
index 75788562704c2f92baf667d74ab34cfdfc3f6a3a..4b1a3345f55c8e36dc03a15d46bc372ce280a19a 100644 (file)
@@ -611,7 +611,7 @@ set show_conv_list \
        {$_shell_exitsignal = void} \
        {$_shell_exitcode = 0} \
     }
-if ![skip_python_tests] {
+if [allow_python_tests] {
     append show_conv_list \
        {
            {$_memeq = <internal function _memeq>} \
index 88e95d13ae228ab0ced0e755d3a1ade1eb4a53d4..a215dde0ece25d97be3bbee68d16459e404582da 100644 (file)
@@ -51,7 +51,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
     return -1
index 1ff3f2a0c2128f5ccbb6dc23e71f07cbee7c9f72..8023ef66e787a5b305a229b5e8cb94fd3d5213f0 100644 (file)
@@ -219,7 +219,7 @@ proc jit_reader_test {} {
                    "cannot assign to register"
            }
 
-           if { ![skip_python_tests] } {
+           if { [allow_python_tests] } {
                gdb_test "python print(gdb.objfiles())" \
                    "$any<gdb.Objfile filename=<< JIT compiled code at $hex >>>$any" \
                    "python gdb.Objfile.__repr__ ()"
@@ -263,7 +263,7 @@ proc jit_reader_test {} {
                ]
     }
 
-    if {![skip_python_tests]} {
+    if {[allow_python_tests]} {
        gdb_test "python print(any(\[not x.is_file for x in gdb.objfiles()\]))" \
            "True" \
            "at least one non-file objfile"
index 75c22526c2b1a0d133587fa9096bb9b61586c5fe..f88cf6f5c7aaef478e4a02f868eb2464d1cf644d 100644 (file)
@@ -80,7 +80,7 @@ gdb_test_multiple "p \$.array\[1\]" "" {
 
 gdb_test "set debug target 0" ".*"
 
-if { ! [skip_python_tests] } {
+if { [allow_python_tests] } {
     gdb_test_no_output "python val = gdb.parse_and_eval('global_foo')"
     gdb_test "python print('val = %s' % val)" "val = \\{f = 1, array = \\{1, 2, 3, 4, 5\\}\\}"
     gdb_test "python print('val.is_lazy = %s' % val.is_lazy)" "val\\.is_lazy = False"
index f5c55f584258dfe860e13a6a1994ebde3fa7164b..fe906cefb14790be92718f8db50ecd98b3b0d1e0 100644 (file)
@@ -36,7 +36,7 @@
 
 standard_testfile .c
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
     return -1
index 033c1faf6e3c99f5fbe8c00d449d958ca8921c67..0a7228c689038cc6bdba52ea237a9a153500bcb1 100644 (file)
@@ -471,7 +471,7 @@ proc test_startup_version_string { } {
 # expected or not, this styling requires Python support in GDB, and
 # the Python pygments module to be available.
 clean_restart ${binfile}
-if {![skip_python_tests] && [gdb_py_module_available "pygments"]} {
+if {[allow_python_tests] && [gdb_py_module_available "pygments"]} {
     set python_disassembly_styling true
 } else {
     set python_disassembly_styling false
index 545d76f124640f9606f77b8c4cc4eb644a12c0d8..02826ed48558062f915ce17ad79bd5fc502414d6 100644 (file)
@@ -17,7 +17,7 @@ load_lib dwarf.exp
 load_lib gdb-python.exp
 
 # This test can only be run on targets which support DWARF-2 and use gas.
-require dwarf2_support !skip_python_tests
+require dwarf2_support allow_python_tests
 
 standard_testfile main.c -dw.S
 
index 8e5a1ab0111eed92bf8dfe5b584937c874040d2f..f5dfc9c0793ca27bc36a615a76ce52ac4c4e1dd7 100644 (file)
@@ -72,8 +72,8 @@ gdb_test "break func" "Breakpoint .*" \
     "set breakpoint in func"
 gdb_continue_to_breakpoint "continue to func"
 
-set skip_python [skip_python_tests]
-if {!$skip_python} {
+set allow_python [allow_python_tests]
+if {$allow_python} {
     gdb_test "python finishbp = gdb.FinishBreakpoint()" \
        "Temporary breakpoint.*" "set FinishBreakpoint"
 }
@@ -82,7 +82,7 @@ gdb_test "finish" [multi_line \
                       "Run till exit from #0  $hex in func \\\(\\\)" \
                       ".*$hex in main \\\(\\\)"]
 
-if {!$skip_python} {
+if {$allow_python} {
     gdb_test "python print (finishbp.return_value)" "None" \
        "check that return_value is None"
 }
index 3c0e2e5730449affc9c5e29faa6a7b9cbef341bd..c147c6bcbb03f3970102292762917c452d66a9ce 100644 (file)
@@ -24,7 +24,7 @@ if [target_info exists gdb,noinferiorio] {
     return
 }
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile .cc
 
index e5d62cd31e218a9fb8fea72b7fb16aa5b625f0e4..487d2095aca28e12f62df671b192240a1bb82985 100644 (file)
@@ -23,8 +23,8 @@ if {![multi_target_prepare]} {
     return
 }
 
-# Cache the result of calling skip_python_tests into a local variable.
-set run_python_tests [expr ! [skip_python_tests]]
+# Cache the result of calling allow_python_tests into a local variable.
+set run_python_tests [allow_python_tests]
 
 # Test "info inferiors" and "info connections".  MULTI_PROCESS
 # indicates whether the multi-process feature of remote targets is
index ff48d422c9b432081b9dde5b5baf3b36c36adaf8..18fc4970fe7b6e5ef65f9bc13f68a76e7a3cd536 100644 (file)
@@ -415,7 +415,7 @@ with_test_prefix "two inferiors" {
        "No threads match '3.1'\."
 }
 
-if { ![skip_python_tests] } {
+if { [allow_python_tests] } {
     with_test_prefix "python" {
        # Check that InferiorThread.num and InferiorThread.global_num
        # return the expected numbers.
index 0cc6bd93daa25ee8f6b006885bee29c93e58f5ac..8a899e78f1f4a55d5061936761e44b612a88bd2d 100644 (file)
@@ -17,7 +17,7 @@
 
 standard_testfile -a.c -b.c
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" "compare-enum-type" \
          [list $srcfile $srcfile2]] } {
index 23f1da067a5c8a084089fc0df3ad7a40c27fc1af..7849c137c368619ca2cdb661b92e7732ea775de3 100644 (file)
@@ -17,7 +17,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" \
        ${testfile} ${srcfile}] } {
index 92359c941a69be8d9ca6beb5aa0f835d9eeba3bc..21ed23f0909210ff652821fc52ae3106865bc8c5 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile .cc
 
index 64414a3c23baa3fe7d3db7e2ddb9fdd7fb74b443..7ab2b1facf7de7f6060ec145d45b30e98e6dceac 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 5a0077d020d66596d4ecbe1f0aa24f7b9f0642f6..2ba7c9c0752919247f1128faeddae97bdff5e9af 100644 (file)
@@ -16,7 +16,7 @@
 # Check the gdb.Architecture.register_groups functionality.
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 standard_testfile py-arch.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 73e41401f51a5255139ef53c5b8ea26fcbfb7047..ff7a124d615cf495f3ce6e78084094ab29dc3985 100644 (file)
@@ -16,7 +16,7 @@
 # Check the gdb.Architecture.registers functionality.
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 standard_testfile py-arch.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 449613bc0fb152595d20e6edc964056635f4a0c4..4f4b4aa766f5b1699d1012b90180ad9b49dd1433 100644 (file)
@@ -13,7 +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/>.
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 8bf248a59adb037376e63ce78de2e199f0e18107..9c0503e90e558052a279039323796b995127bb5d 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index aac6eb305b9455bca815d22c72ddc1836459d3e5..dbe9a6775d7d2486bb5758c9626af8d067abe9c7 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile .c -f1.c -f2.c
 
index a67ae48b316f21ac104e2108f43d31382ca8a251..2217e2e65274e0f4348d5b2ef68e5fe438c78405 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile -main.cc
 
index 26e6a97916c1f96dd24ed6892aa9ced537cbb953..7f53278f0fe0fbace3ecf0759c97e2a2e78fd066 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 90c3b4d0fb086cc07769b66ae3b58781031fdcf3..3bdf97294aead443582ee0961e103bd07a64eb87 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 55aca67eb9dc6dbf01a352e76eb3556a2003f275..f8649f6c105fe83d51393fdd1b81eecc8a0bba1e 100644 (file)
@@ -15,7 +15,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 6c1a262ad4752cdfc24dff0694c21e0cd1839157..a3b0c3f96aaa55baf470786cd0d27daffb9e3de7 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index a3a8512c4d9df01a1cd1b58d6d982bace6bfdc1e..bee2ceaf0327a50eabf09d20b52cdd5ae955cfa9 100644 (file)
@@ -26,7 +26,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 66e0ce516e4be4adad34e899180d6654178a2c0d..8acf8ffc38f7dcf745d61fe00a7c4cef27cc0447 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 9e831954cddf5bcd806e993dfafe0b66cf190513..bc61f742f5fd0e8c33036df6ff00dd54fcad2c2b 100644 (file)
@@ -15,7 +15,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 gdb_exit
 gdb_start
index 0eb785f6d4d775b9898d0b57e91105ffe267e23c..016ea445f1034974d397839c05a0cec4d1af7c2d 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index bf1abf32ee257c157cbc1aae5fc2c9a6d891aacd..b3acebf66a1000129e6109cdb466d0adf388c0b4 100644 (file)
@@ -17,7 +17,7 @@ set testfile "py-completion"
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
 set discard 0
index efbcf46516ff1c9723b1d9158c975a56d69cf300..afae0a7436dc8dad95e3f8fc466ff31f1786a1ac 100644 (file)
@@ -25,7 +25,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile py-connection.c
 
index 78710fd27dee4f99d83cb5093978cdeeb709676e..b1a8d692b91559a9a2048b036a1a5388760a8f1b 100644 (file)
@@ -20,7 +20,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 57f8fdfce41d7789685d9c2a38eccae70a4627e1..38a2b766320e08abb13b1c2739906ba4e6f56c2d 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 3829873c4cc504f6626d826d24b314312e7de7cf..63079e7eafaf9d37d23fb51e9486468301ba6b2a 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 clean_restart
 
index 0a8fd190c180091b4302823f93ec36666235784e..230c827a13982acd91f58d1c94f04cdf38641323 100644 (file)
@@ -20,7 +20,7 @@ set testfile "py-error"
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 # Start with a fresh gdb.
 gdb_exit
index f36312511480e4b1b6a066e15ad155a6ba4582b7..7dc47f1538a21e913627f238cb21f5899f208cee 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_shlib_tests !skip_python_tests
+require !skip_shlib_tests allow_python_tests
 
 if {[get_compiler_info]} {
     warning "Could not get compiler info"
index ea1a6f502ffefeccce38125835c22a0e31bc7f0f..064a779c50bc6ea4487b90f19ee3845dc52e5f34 100644 (file)
@@ -13,7 +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/>.
 
-require !use_gdb_stub !skip_python_tests
+require !use_gdb_stub allow_python_tests
 
 load_lib gdb-python.exp
 
index 2f0e791884e619b71420af60feaf897a75918e3f..5eab7b29aebcfdd08639e53542793cfc42d4e178 100644 (file)
@@ -22,7 +22,7 @@ if {[target_info gdb_protocol] == "remote"
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile py-evthreads.c
 
index e993c6fe9b28b841882aa86a68d2eb5792dbb727..fcb069ea5af07f9d149f469a06da79a2a706d719 100644 (file)
@@ -13,7 +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/>.
 
-require support_displaced_stepping !skip_python_tests
+require support_displaced_stepping allow_python_tests
 
 load_lib gdb-python.exp
 
index a467e84a482bce78cc813b08365e86c4db2cf985..04aa06c7019ae4bf75d1b18d0d462f907672f29e 100644 (file)
@@ -16,7 +16,7 @@
 # This file is part of the GDB testsuite.  It tests the mechanism
 # exposing values to Python.
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 standard_testfile py-explore.cc
 
index dd36740bac593c02420185868c8b1a686f7cc16a..0536532511f1c6f80c267e5ce14ddedeadb0286b 100644 (file)
@@ -15,7 +15,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
index d414268b1cb14730fef9362a5e9e819c36573e62..202173d27789c7562fac62213d34aa458a28a335 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index d37508c7d5c691fe9a9d8b057f923ce422ba2681..9e5a0a6f754bae282d957b68b70a5cf58bcf23ce 100644 (file)
@@ -16,7 +16,7 @@
 # This file is part of the GDB testsuite.  It tests the mechanism
 # exposing values to Python.
 
-require !skip_shlib_tests !skip_python_tests
+require !skip_shlib_tests allow_python_tests
 
 load_lib gdb-python.exp
 
index 300020553a10d703ade3c0325fc32e944036c55f..66587b8b9a064862bde69199ad263d258a38569e 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile .cc
 
index d9fed3f6ef2225fa38b5848f37b15a1b9a4607c4..48de1c82d5d122ee4323be8f95a976d2b48314c8 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 standard_testfile
 
 foreach func_name { foo bar } {
index 30a57b2254f784aab59bf864dd26669ad1b77e6a..122130d4016658697c26195058936b5e5a076ebc 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 091e26dd5b193c456b50f2dcd79caa48498ddd33..5c099e012641f1b4797c742811b7c3379ef37836 100644 (file)
@@ -15,7 +15,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
index 719ec18aa37c1f1cc43ba8882111ef5ac622e083..5fb336193dd95583d76292ef68565ab3c1bb5e04 100644 (file)
@@ -15,7 +15,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index f17e2f9844a6b8a453790e54f626d15d347c8ffb..5aebb6beb5f93ea006d47695ab06b161f3f478b8 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 5dad3bd0f2d6b97aab60f896c47fed37e3ba0880..3bb759b97bf277a7e5dca3230dede17f39a6ac56 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 86a830d5eef9a7fa05a9bc0f88de00c36c8fa6a2..d2c29afa81d11220045fc8f16a94fb5f42088745 100644 (file)
@@ -15,7 +15,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile amd64-py-framefilter-invalidarg.S
 
index 81101c11809ea0b85048f34ddacfade384723e0c..6897518a20e172fe0b4ec9cf58c5cc9d874248ba 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 7c48f7a0bd849d342bee6d115f52e1e4628563ee..25b83a797aa5c5f5a1ed9d4e9a7612b1ddae21ef 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 # Start with a fresh gdb.
 
index 4e2fa64154598f46884a0e51e2c0ab35178d00cf..b0456de360f0510e5703e9dd7a3eb73c101121c7 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 0286d82394c374a00bf7bf4c83af246e137c20b4..424050a6166aa5ac111b8cef9fe37b33ad632f81 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 47c6b19dbfcebf2d311a5dc88d090e1fb03664b1..0b10ce9ff77669cec8e32903c98154c6f203ea3e 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index f3e91b74a46773ff705b12552e4144e1eec52578..b781eece30453f84a4d060992fba4ad0cbe7e476 100644 (file)
@@ -17,7 +17,7 @@
 # symbol (i.e. a symbol for a goto label).
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 9f3bad5c66071e27f55836d1b8a2fcfdc72c2d55..522530cb128dd7d271fd111542130df73fe39565 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index ff438216cf356ba8bef4a96bbdfe1e48aa0bf90e..d19516df9a85d0ef2b4271201f90191eb833d4c0 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 set opts {}
 standard_testfile .S
 
index 7527c13a925f27171b3b84ee84588c13c2f592f9..c914ea1068b06edcadd0091fa076da4aa66f986d 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 # Note that the purpose of this testcase is to test the behavior
 # of gdb.lookup_type searching for the primitive types internally
index 4ed3405730a20c3ba8e98613a57632f664d57baf..cc417d48bfeec3e51a62c237020b16dbb4a96e11 100644 (file)
@@ -18,7 +18,7 @@
 load_lib mi-support.exp
 set MIFLAGS "-i=mi2"
 
-require !skip_python_tests
+require allow_python_tests
 
 gdb_exit
 if [mi_gdb_start] {
index 1b258623fb86a73f3e581ca0c5c1f0af05143b27..bc02da252bccf1e5646983d5c47d7494f6402110 100644 (file)
@@ -18,7 +18,7 @@
 load_lib mi-support.exp
 set MIFLAGS "-i=mi2"
 
-require !skip_python_tests
+require allow_python_tests
 
 gdb_exit
 if [mi_gdb_start] {
index b618b08e393afd33dd52e14764c0a57879eff50e..df5fc08dcfeb245661a46173cbc645cc71778905 100644 (file)
@@ -18,7 +18,7 @@
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-require !skip_python_tests
+require allow_python_tests
 
 #
 # Start here
index 76e38c2555cc30a26de5851418208f5ed3e2d36c..3dfdcf61a72a898885ec585eaed337fd9b8ee241 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 550a68447b8dc1b5f6d4d7ee8fec85bf959d8e4b..80ccb51800c146c2622fca243b5f14e74ed97c56 100644 (file)
@@ -18,7 +18,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     return -1
index cf9d5aedc19e2dc9acd8523e284b01a0dd6e9bd8..61b9942de79bbde3682e9f790be0a284cd1ca13a 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index ab99817b5f3fd637ad2e0bb32d3f2e67c5fb922c..e6a26ddc1ba53b477e8f92b36695705ed49ce27f 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 # Start with a fresh gdb.
 clean_restart
index b83eaa31095d1b0827a354d59869eaea215eb31c..54db88dd7de752280ec463396a9ff169e0254dce 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 3fa247661aef60df061eb0c61497ebc6edd59297..55b6a908c8b0e3cefa23f959e2bc0db5206ce9d1 100644 (file)
@@ -15,7 +15,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
index 5e6f23aeb9d366f40a70ae7e4db434f7a939661a..5e5b8030d201f62655fc1cb54836702545fc04f2 100644 (file)
@@ -23,7 +23,7 @@ if [is_remote host] {
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 3fa247661aef60df061eb0c61497ebc6edd59297..55b6a908c8b0e3cefa23f959e2bc0db5206ce9d1 100644 (file)
@@ -15,7 +15,7 @@
 
 standard_testfile
 
-require !skip_python_tests
+require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
index c85fc4a1a79418b9bd70656e84399d1e325552e5..6b4f7600f3e00c1dc531b5b163427573e5bfbb39 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 8166e118693bbe40c5352f6fdab7b686b217acd4..674a4edd0d2d165bbbe60a52140276a9eb977ea7 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 23b328aa680876e8a48a479ab96c19ebae23c5e2..c7be948960165b21f9f00486c893688d089ad7dc 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 56a0b47c78d621642430345a777241fbea9d84c6..b5628933e0fc993776346cbdc49f5a3f486e4059 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 load_lib gdb-python.exp
 load_lib prompt.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     return -1
index 6c5f77ef3b1c09c6d05985d5173a69526c918d83..43e13cdcb1f1387ca5d15ee1227c860aedc8eabb 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile py-rbreak.c py-rbreak-func2.c
 
index ca9552754f3f4dc3b4e2332fcde354ad0eac4d3e..19382d7bec0a7af05a5d6a39c878fa3e953762eb 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 
-require allow_btrace_tests !skip_python_tests
+require allow_btrace_tests allow_python_tests
 
 standard_testfile
 
index 1b9824e284bc6ff3fb24bc4b42f0435fc58c01c5..555b70ae336df072d7c363cfbf28be7efce86421 100644 (file)
@@ -17,7 +17,7 @@
 
 # Skip this test if btrace is disabled.
 
-require allow_btrace_tests !skip_python_tests
+require allow_btrace_tests allow_python_tests
 
 load_lib gdb-python.exp
 
index eb40d51f21895b99c314615bc35b61f5d05137ac..3c03bb4a9234869db125b4b04d217260af49ee50 100644 (file)
@@ -17,7 +17,7 @@
 
 # Skip this test if target does not support recording.
 
-require supports_process_record !skip_python_tests
+require supports_process_record allow_python_tests
 
 load_lib gdb-python.exp
 
index 498443e9e549f25503efce233ee260b1bb5aa9db..1f12e5521d13cb4323f0b4ba970ce131f06678af 100644 (file)
@@ -24,7 +24,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index aeb3f9c93cdf449984aa0e85b85a4e21d3897aec..d91912fe9248a544391a4ee1a08387399ce6715e 100644 (file)
@@ -17,7 +17,7 @@
 # exposing rvalue reference values to Python.  It is based on
 # gdb.python/py-value-cc.exp.
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 standard_testfile .cc
 
index 96dafdbfd678c95842cf2b49b64442ecce14edeb..24d207416af2abbb9582d45c1b1a90e447d81095 100644 (file)
@@ -28,7 +28,7 @@ if {![istarget *-*-linux*]
     return
 }
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 75e7bb6aa9cbc4c51e607a961376297c5768dc02..e48d08a7a92033b08c261fb4db44cbc7e150bb9e 100644 (file)
@@ -24,7 +24,7 @@ load_lib gdbserver-support.exp
 
 standard_testfile
 
-require allow_gdbserver_tests !skip_python_tests
+require allow_gdbserver_tests allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
index fdec1df2cc89852444b8e503fba59625626a125a..bd5f9a1da2d2849949bfb8149bba72200af9d337 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_shlib_tests !skip_python_tests
+require !skip_shlib_tests allow_python_tests
 
 standard_testfile
 
index 8a22b7f4e8ca40f0b9e9f87bd40437dd7f068a1b..f92d6f7a7064aafb2d685456e4e02be5ab14d936 100644 (file)
@@ -31,7 +31,7 @@ save_vars { env(TERM) } {
        return -1
     }
 
-    if { [skip_python_tests] } { continue }
+    if { ![allow_python_tests] } { continue }
 
     if { ![gdb_py_module_available "pygments"] } {
        unsupported "pygments module not available"
index 2d9fd2a04443deb7f0382debc9b1d35f695ca8a9..08d1c79eee38585a1222cd71a5c61bd762ed3713 100644 (file)
@@ -16,7 +16,7 @@
 # Test the flags within GDB that can be used to control how Python is
 # initialized.
 
-require !skip_python_tests
+require allow_python_tests
 
 # Return a list containing two directory paths for newly created home
 # directories.
index 162e1026eb5fa0f1f343ea71c9326b00bf91b954..2f30e54b58741161ce21f6989576d0cc924fd0b9 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index a0bf34d8aa1f902c007257ad5237846334d06040..9ec2f44e9c0da0acd441809940fda795a78d129d 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile py-symbol.c py-symbol-2.c
 
index 5b68524140efe88ad4b807c6409ea6f8c5e560d5..b706cca092e3eb3e343a8cdb705d5252e15051ec 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile py-symbol.c
 
index 1e994bf7393878275285f0f3f6775a57fa3d9755..665b9561ecd001a5cb1400f4a4a0386f7713798c 100644 (file)
@@ -20,7 +20,7 @@
 
 standard_testfile
 
-require can_spawn_for_attach !skip_python_tests
+require can_spawn_for_attach allow_python_tests
 
 load_lib gdb-python.exp
 
index b337bfb8f01f801e474ff3dfd0202ed54065f119..a89a813578d46931cf7bd6782318e5385a6e8e5e 100644 (file)
@@ -16,7 +16,7 @@
 # This file is part of the GDB testsuite.  It tests the mechanism
 # exposing values to Python.
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 standard_testfile .cc
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
index 0806f8995c17c4af4236f0f4a58e861e65ae585f..e8004c77ad1e2779f12dbb11c89f69db1663f0ea 100644 (file)
@@ -21,7 +21,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 31d50d24418ebb399371b8c1e91c2e940f4fafb6..e7837d7405fa2a67cfd44e626a652bd4839322da 100644 (file)
@@ -351,7 +351,7 @@ if { [build_inferior "${binfile}" "c"] == 0 } {
   restart_gdb "${binfile}"
 
   # Skip all tests if Python scripting is not enabled.
-  if { [skip_python_tests] } { continue }
+  if { ![allow_python_tests] } { continue }
 
   gdb_test "python print (gdb.lookup_type ('char').objfile)" "None"
 
index 219e8527ecb2c644fd1d12d3500ce515b78b89f9..40f7e53847f6985fe6d2536ea8bf2284c199ff81 100644 (file)
@@ -13,7 +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/>.
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 load_lib gdb-python.exp
 load_lib cp-support.exp
index c0dc7f2f49b9dbb84b2a89284c5acedd4e1c9a38..e75b060cde9d6cc153d6bd98e28b04a65519cdce 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 3fcbe4f60549c660e8a07f08c169a8b2db77543a..e226121c97a1493d4c5596f50946dea7b6297f17 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 1598f86569907b062aaded93d440611c0c42826b..96692d69808a55bf8abbe3c684702e72d5a10f14 100644 (file)
@@ -38,7 +38,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 2d279bf71b15c38824ac883f0581e0c5baf8653a..0d817378d97a167c3df9ae842f24b8beb318497c 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index 69439e226bf7543a3f9c0a56acf058e2964bb4b2..1ea10ad0058faf58082f5007c23cb3ea9bb1f5ca 100644 (file)
@@ -16,7 +16,7 @@
 # This file is part of the GDB testsuite.  It tests the mechanism
 # exposing values to Python.
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 standard_testfile .cc
 
index 26ad72a54015256fcd77a7b3d9e2d90c6c292953..898208b90d13b58b5276d9cffe1ca69fefe3cd3a 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 standard_testfile
 
index c164fec82aa41f50873beb20ce92100c7602310a..97d560476fc3f8fb1e8744fadffdbd65b26ccfc3 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require allow_cplus_tests !skip_python_tests
+require allow_cplus_tests allow_python_tests
 
 standard_testfile py-xmethods.cc
 
index 6048654882580d7602bdf1990bf7a3dadc703f05..36ecb0b5ef1c3f203a85beacbcec8b47e32f1eb3 100644 (file)
@@ -48,7 +48,7 @@ proc clean_restart_and_setup { prefix } {
        Term::clean_restart 24 80 $testfile
 
        # Skip all tests if Python scripting is not enabled.
-       if { [skip_python_tests] } { return 0 }
+       if { ![allow_python_tests] } { return 0 }
 
        # Now source the python script.
        gdb_test_no_output "source ${remote_python_file}" \
index 48f3c6b07cd64593bd9ac20258dc11f2b437c26b..125a5f5a9b5ee0d0c821838c82491b975ef79ee1 100644 (file)
@@ -18,7 +18,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_python_tests
+require allow_python_tests
 
 tuiterm_env
 
index 2f0415557bd26fc1afb69c5f3471551e4391e82a..529ed16b6411eacbd957fcabc6e4da3c31cf6dd7 100644 (file)
@@ -16,7 +16,7 @@
 # Test a TUI window implemented in Python.
 
 load_lib gdb-python.exp
-require !skip_python_tests
+require allow_python_tests
 tuiterm_env
 
 # This test doesn't care about the inferior.
index d23463e89dd05fb56329d6f4aaf94758c11000f8..28ae0545c5a5c9d49d66f20fd90fd920b4f20a67 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 load_lib rust-support.exp
-require !skip_rust_tests !skip_python_tests
+require !skip_rust_tests allow_python_tests
 
 standard_testfile .rs
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
index 7314aab395c853776b1332316f09e5933b6dee8b..5925a4cd12d17a0bc07902c6ab05df41e708da9d 100644 (file)
@@ -386,7 +386,7 @@ gdb_test "print empty_enum_value.0" ""
 gdb_test "print empty_enum_value.something" ""
 
 load_lib gdb-python.exp
-if {[skip_python_tests]} {
+if {![allow_python_tests]} {
     return
 }
 
index bc62cbfc4317756a3e6853fde737b8d6f28ca05f..7b8f29b289081ddaf07aacd5a1e122e64f5de6fe 100644 (file)
@@ -23,7 +23,7 @@ load_lib gdbserver-support.exp
 
 standard_testfile multi-ui-errors.c
 
-require allow_gdbserver_tests !skip_python_tests
+require allow_gdbserver_tests allow_python_tests
 
 if {[build_executable "failed to prepare" ${testfile} \
         ${srcfile}] == -1} {
index 693771e942e6c36bf4815e6a487c463ff4490757..48b79fe723cdfc4571a6fd1a8121124529c2619d 100644 (file)
@@ -66,7 +66,7 @@ proc do_test { target } {
 
     gdb_test "info connections" "${target} \| ${::gdbserver} - ${::binfile} \[^\r\n\]+"
 
-    if { ![skip_python_tests] } {
+    if { [allow_python_tests] } {
        gdb_test_no_output "python conn = gdb.selected_inferior().connection"
        gdb_test "python print(conn.details)" "\| ${::gdbserver} - ${::binfile}"
     }
index 78ce9879b42c6438235d3a5eaf371d775d961e3a..99e9951f1f69be5c8d81ad1bc329075ac2a50574 100644 (file)
@@ -72,7 +72,7 @@ proc check_thread_local {number} {
            "= $expected_value" \
            "${number} thread local storage"
 
-    if {![skip_python_tests]} {
+    if {[allow_python_tests]} {
        gdb_test_no_output \
            "python sym = gdb.lookup_symbol('a_thread_local')\[0\]" \
            "${number} look up a_thread_local symbol"
index 3a1936ffc82025c82e1df52cab1784c35275d12d..b6eff66f94de168a16c18fdb494ee97b3498b0f5 100644 (file)
@@ -2447,11 +2447,11 @@ proc skip_rust_tests {} {
     return 0
 }
 
-# Return a 1 for configurations that do not support Python scripting.
+# Return a 1 for configurations that support Python scripting.
 
-gdb_caching_proc skip_python_tests {
+gdb_caching_proc allow_python_tests {
     set output [remote_exec host $::GDB --configuration]
-    return [expr {[string first "--with-python" $output] == -1}]
+    return [expr {[string first "--with-python" $output] != -1}]
 }
 
 # Return a 1 if we should skip shared library tests.