aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-18 13:23:53 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-12-18 20:13:41 +0000
commit9465c5c28d52c6a9a73a4f5c669ecf3d43746b20 (patch)
tree5339d2bd22c59ae8fc505441c00d8a0863086a7c
parente0dba4854b54c3510dfdb3466270b60b4bbe5cb6 (diff)
wmem_test: Disable performance tests by default
These are not pass/fail tests, so the automation cannot validate them. They just slow down the CI builds. To enable pass -m perf. I think the --verbose comment is wrong, I did not detect any difference in output with or without --verbose.
-rw-r--r--wsutil/wmem/wmem_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/wmem/wmem_test.c b/wsutil/wmem/wmem_test.c
index cfc6c7a4f4..0f8f1c20b7 100644
--- a/wsutil/wmem/wmem_test.c
+++ b/wsutil/wmem/wmem_test.c
@@ -503,7 +503,7 @@ wmem_test_strutls(void)
utime_ms = (end_utime - start_utime) * 1000.0; \
stime_ms = (end_stime - start_stime) * 1000.0
-/* NOTE: You have to run "wmem_test --verbose" to see results. */
+/* NOTE: You have to run "wmem_test -m perf" to run the performance tests. */
static void
wmem_test_stringperf(void)
{
@@ -1466,7 +1466,7 @@ main(int argc, char **argv)
g_test_add_func("/wmem/utils/misc", wmem_test_miscutls);
g_test_add_func("/wmem/utils/strings", wmem_test_strutls);
- if (!g_test_perf ()) {
+ if (g_test_perf()) {
g_test_add_func("/wmem/utils/stringperf", wmem_test_stringperf);
}