git: 8672683ec80a - main - test/sys/arch: Fix arch without test/sys/arch/${MACHINE_ARCH}

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Thu, 09 Apr 2026 15:52:02 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=8672683ec80a6767b1aa12dedeed94d20ec57911

commit 8672683ec80a6767b1aa12dedeed94d20ec57911
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2026-04-09 15:49:56 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2026-04-09 15:49:56 +0000

    test/sys/arch: Fix arch without test/sys/arch/${MACHINE_ARCH}
    
    Fixes:          0ddaa4c86d68 ("arm64: Add arm64 SVE tests")
    Sponsored by:   The FreeBSD Foundation
---
 tests/sys/arch/Makefile     | 6 ++++--
 tests/sys/arch/Makefile.inc | 2 --
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/sys/arch/Makefile b/tests/sys/arch/Makefile
index e1a35422410e..40edad27507d 100644
--- a/tests/sys/arch/Makefile
+++ b/tests/sys/arch/Makefile
@@ -1,5 +1,7 @@
+TESTSDIR=	${TESTSBASE}/sys/arch
+
 .if exists(${.CURDIR}/${MACHINE_ARCH})
-SUBDIR+=	${MACHINE_ARCH}
+TESTS_SUBDIRS+=	${MACHINE_ARCH}
 .endif
 
-.include <bsd.subdir.mk>
+.include <bsd.test.mk>
diff --git a/tests/sys/arch/Makefile.inc b/tests/sys/arch/Makefile.inc
index cf5c687d6401..01b5f23410c8 100644
--- a/tests/sys/arch/Makefile.inc
+++ b/tests/sys/arch/Makefile.inc
@@ -1,3 +1 @@
-TESTSDIR=		${TESTSBASE}/sys/arch
-
 .include "../Makefile.inc"