[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: avoid false failure on older valgrind
From: |
Pádraig Brady |
Subject: |
[PATCH] tests: avoid false failure on older valgrind |
Date: |
Sat, 9 Nov 2024 17:00:28 +0000 |
* src/shuf.c (main): In dev mode call randint_all_free()
to avoid false failure with valgrind 3.16.1 at least.
Note this partially reinstates commit v9.0-109-g0106b5a4b
---
src/shuf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/shuf.c b/src/shuf.c
index 63c26f31e..80ffdb2e1 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -599,5 +599,7 @@ main (int argc, char **argv)
if (i != 0)
write_error ();
+ IF_LINT (randint_all_free (randint_source)); /* For older valgrind. */
+
main_exit (EXIT_SUCCESS);
}
--
2.47.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: avoid false failure on older valgrind,
Pádraig Brady <=