aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2024-11-09 16:55:33 +0000
committerPádraig Brady <P@draigBrady.com>2024-11-09 17:16:30 +0000
commitf7c53095d29ea4b30a9ec3327b0cd4e5c2106d7e (patch)
tree7c8b54dfe9b498a18e09fe3b2504ca99957e4e83
parentseq: seq_fast always exits now (diff)
downloadcoreutils-f7c53095d29ea4b30a9ec3327b0cd4e5c2106d7e.tar.gz
coreutils-f7c53095d29ea4b30a9ec3327b0cd4e5c2106d7e.zip
tests: avoid false failure on older valgrind
* 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. This was noticed on a debian 11 system running CI tests.
-rw-r--r--src/shuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shuf.c b/src/shuf.c
index 0956abf53..e32394e58 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -593,5 +593,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);
}