git: 4a6091a88701 - main - libc: skip telldir_leak test
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Nov 2026 16:04:24 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=4a6091a88701a1f1767e58a255902579c3fbd8eb
commit 4a6091a88701a1f1767e58a255902579c3fbd8eb
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2026-11-09 16:03:07 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2026-11-09 16:04:16 +0000
libc: skip telldir_leak test
It uses sbrk to attempt to detect memory leaks in telldir, but we're not
going to export sbrk in the future and this is unreliable for mmap-based
mallocs. It's also a regression test for a specific NetBSD bug.
Reviewed by: ngie
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D46955
---
contrib/netbsd-tests/lib/libc/gen/t_dir.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_dir.c b/contrib/netbsd-tests/lib/libc/gen/t_dir.c
index 49800bfb3f34..6ae976b64b67 100644
--- a/contrib/netbsd-tests/lib/libc/gen/t_dir.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_dir.c
@@ -39,11 +39,10 @@
#include <unistd.h>
/*
- * sbrk is obsolete, and libc only provides it on a subset of
- * architectures.
+ * sbrk is obsolete, and doesn't test what the test author expects with
+ * jemalloc as the allocator.
*/
-#if defined(__amd64__) || defined(__arm__) || defined(__i386__) || \
- defined(__powerpc__)
+#ifndef __FreeBSD__
#define HAVE_SBRK
#endif