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

22 files changed:
gdb/testsuite/gdb.perf/backtrace.exp
gdb/testsuite/gdb.perf/disassemble.exp
gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp
gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp
gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp
gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp
gdb/testsuite/gdb.perf/gmonster1-runto-main.exp
gdb/testsuite/gdb.perf/gmonster1-select-file.exp
gdb/testsuite/gdb.perf/gmonster1.exp
gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp
gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp
gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp
gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp
gdb/testsuite/gdb.perf/gmonster2-runto-main.exp
gdb/testsuite/gdb.perf/gmonster2-select-file.exp
gdb/testsuite/gdb.perf/gmonster2.exp
gdb/testsuite/gdb.perf/single-step.exp
gdb/testsuite/gdb.perf/skip-command.exp
gdb/testsuite/gdb.perf/skip-prologue.exp
gdb/testsuite/gdb.perf/solib.exp
gdb/testsuite/gdb.perf/template-breakpoints.exp
gdb/testsuite/lib/perftest.exp

index d8b046b5cd131c8d1b6de1fb932a5840fd24c4c4..38cdd5da0a8a6b2b9b1832109be51cde699dd48e 100644 (file)
@@ -21,7 +21,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .c
 set executable $testfile
index ee33dcf04814daf6d440adba5254849013f91709..067754747ece6025841b779f85fd42eb233070b2 100644 (file)
@@ -17,7 +17,7 @@
 # some large functions in GDB.
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 global GDB
 
index 1c17cd7f450dbbe4d1478392d15c924528e17a9e..706ea7a87d447274529e7c19f5fb222ae47b52d2 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-null-lookup.py NullLookup
index ae175f3a1eff36d2fe922ba7e9ac2065519a090d..b3b992a6872662e6e1857122ec4ddb22c2123041 100644 (file)
@@ -21,6 +21,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-pervasive-typedef.py PervasiveTypedef
index 54f7f00b42b6cba81f084c49f1cf900d4ca415a6..a0827339025b9645aba1a37d4afa17ea585f5aee 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-print-cerr.py PrintCerr
index f37cead361fe884ac6c68903b5da45371085fbfc..426c968995c6c8f61ec4d0664c4f3512d5c4c1ea 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-ptype-string.py GmonsterPtypeString
index 8b4311ed43d4170cfd9272fcfd6e9f34cc65b2ac..ad235dbe8973e75f2cbf4e0302bd25e51d82fdee 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-runto-main.py GmonsterRuntoMain
index 71b3d61b77235a3af29b9d6a2842cd5a542c469e..1e720acf147d41b5fa57695cf19495871ed1d957 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-select-file.py GmonsterSelectFile
index 900452501eb34b85e80c3f15471acb16eb02db05..7ccf9fa9b53f88180ec90c302ab55a2ea6b58275 100644 (file)
@@ -36,7 +36,7 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 if ![info exists MONSTER] {
     set MONSTER "n"
index 353e6f1220242a08d29c180ec941250e8ff7f7ab..f98c5a5a658e4a6a48acd35a9161f12ccaf485b4 100644 (file)
@@ -20,6 +20,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-null-lookup.py NullLookup
index e37c1a4b2f67325601ae7bdfb7490c359f07b680..ce3d48b8ba80700b100c94bb55b73356f5a6451d 100644 (file)
@@ -21,6 +21,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-pervasive-typedef.py PervasiveTypedef
index ccb9e733fb48a843797966280d245b23fee20413..2020ddffdbe5a02168608bc7399207bacaf45b89 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-print-cerr.py PrintCerr
index a21fa349b7abdce523a6710c6cb7ebb0a1302770..c153b2f2c192d3c88e00859aab47e79e4d9cc9c8 100644 (file)
@@ -20,6 +20,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-ptype-string.py GmonsterPtypeString
index 05e2ec37dcadd9f622acd3eb27eaed9bba173602..b1cbfe1de0fa95de8c3f9335dc2bc2be9464c360 100644 (file)
@@ -19,6 +19,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-runto-main.py GmonsterRuntoMain
index 869f048e091b14e35a388e95d331fde23b5d722c..aa0428cfe4b94e40eac870a979e8b8cebd2c2bb7 100644 (file)
@@ -20,6 +20,6 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-select-file.py GmonsterSelectFile
index bb0b76994b92f45e1e09814bd780fb7d49c6a979..b1f1c5f642dd3c40b6c43a561bf9b2a932b56227 100644 (file)
@@ -36,7 +36,7 @@
 load_lib perftest.exp
 load_lib gen-perf-test.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 if ![info exists MONSTER] {
     set MONSTER "n"
index b46f838ea8c8a2f814ce44a77d8aa71e000648eb..4638c55e68bc0baa449da502fe41d08231d590c5 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .c
 set executable $testfile
index c0019331cac5a76ea0c37be505519ac62417fabb..0b6919928610dfc44004058142295c9088a7b028 100644 (file)
@@ -25,7 +25,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .cc skip-funcs.cc
 set executable $testfile
index aaa0bbfe6ffda738c26362abdbf7d1b2e0ca2079..4b246296741bb86503cd9616a34b73d9455a2d7c 100644 (file)
@@ -21,7 +21,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .c
 set executable $testfile
index 95d014090f84bf9b4c5bb706c6e17f39f1621942..7c37288c42a70911905d6eae7489e52121d3a4f6 100644 (file)
@@ -24,7 +24,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .c
 set executable $testfile
index fae5c24681cc9e4aa5170a8c182893709f9966f4..b737f3a888eb8d3bd4a8996873e422fce54bb093 100644 (file)
@@ -21,7 +21,7 @@
 
 load_lib perftest.exp
 
-require !skip_perf_tests
+require allow_perf_tests
 
 standard_testfile .cc
 set executable $testfile
index 7ecd79651eda4b623f11e3c0adb6aeb00a0f8f00..14dd057ed549fd766d21d60fda40997d3d0e4800 100644 (file)
@@ -129,9 +129,9 @@ namespace eval PerfTest {
     }
 }
 
-# Return true if performance tests are skipped.
+# Return true if performance tests are to be run.
 
-proc skip_perf_tests { } {
+proc allow_perf_tests { } {
     global GDB_PERFTEST_MODE
 
     if [info exists GDB_PERFTEST_MODE] {
@@ -139,13 +139,13 @@ proc skip_perf_tests { } {
             && "$GDB_PERFTEST_MODE" != "run"
             && "$GDB_PERFTEST_MODE" != "both" } {
            error "Unknown value of GDB_PERFTEST_MODE."
-           return 1
+           return 0
        }
 
-       return 0
+       return 1
     }
 
-    return 1
+    return 0
 }
 
 # Given a list of tcl strings, return the same list as the text form of a