git: 8a7df6c58d54 - main - tests/libc: only build brk_test where libc provides sbrk
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 17:45:57 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=8a7df6c58d549bd2eaa5cad30b2ef93c3eca3c18
commit 8a7df6c58d549bd2eaa5cad30b2ef93c3eca3c18
Author: Xiaoqiang Zhao <zhaoxiaoqiang007@gmail.com>
AuthorDate: 2026-10-10 17:45:18 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-10-10 17:45:28 +0000
tests/libc: only build brk_test where libc provides sbrk
Replace the exclusion list with an allowlist of the architectures
whose libc exports brk/sbrk: amd64, i386, arm and powerpc.
On aarch64, riscv and loongarch libc does not export those symbols
and the test cannot run, so do not build it there. New architectures
now default to not building the test unless brk support is added.
MFC after: 1 week
Signed-off-by: Xiaoqiang Zhao <zhaoxiaoqiang007@gmail.com>
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D60357
---
lib/libc/tests/sys/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/libc/tests/sys/Makefile b/lib/libc/tests/sys/Makefile
index ef689dcf019c..c37ae3dbd658 100644
--- a/lib/libc/tests/sys/Makefile
+++ b/lib/libc/tests/sys/Makefile
@@ -2,7 +2,8 @@ PACKAGE= tests
.include <bsd.own.mk>
-.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv"
+.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "arm" || \
+ ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "powerpc"
ATF_TESTS_C+= brk_test
.endif
ATF_TESTS_C+= cpuset_test