git: a4f1d261fb61 - stable/15 - tests/libc: only build brk_test where libc provides sbrk
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Nov 2026 01:24:57 UTC
The branch stable/15 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=a4f1d261fb615d17cbf8e259fbc17ea959264959
commit a4f1d261fb615d17cbf8e259fbc17ea959264959
Author: Xiaoqiang Zhao <zhaoxiaoqiang007@gmail.com>
AuthorDate: 2026-10-10 17:45:18 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-01 01:24:43 +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
(cherry picked from commit 8a7df6c58d549bd2eaa5cad30b2ef93c3eca3c18)
---
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 88f8191a16eb..4d269f9adbb8 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