git: 22e27e307f8d - main - pmc_exterr_test: add MACHINE_ARCH check

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Thu, 03 Sep 2026 17:46:43 UTC
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=22e27e307f8d16d9bdf3dc6f618ecf896994a082

commit 22e27e307f8d16d9bdf3dc6f618ecf896994a082
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-09-03 17:45:34 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-09-03 17:46:16 +0000

    pmc_exterr_test: add MACHINE_ARCH check
    
    The tests manipulate MD structure fields directly. Build these tests for
    amd64 only.
    
    Fixes:  e555692d1bb ("hwpmc: Add ATF regression tests for hwpmc EXTERROR diagnostics")
---
 tests/sys/pmc/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/sys/pmc/Makefile b/tests/sys/pmc/Makefile
index 311b2ef6343c..d31103e11fb5 100644
--- a/tests/sys/pmc/Makefile
+++ b/tests/sys/pmc/Makefile
@@ -4,7 +4,9 @@ ATF_TESTS_C+=	pmc_api_test
 ATF_TESTS_C+=	pmc_credexec_test
 ATF_TESTS_C+=	pmc_detach_test
 ATF_TESTS_C+=	pmc_exec_test
+.if ${MACHINE_ARCH} == "amd64"
 ATF_TESTS_C+=	pmc_exterr_test
+.endif
 ATF_TESTS_C+=	pmc_lifecycle_test
 ATF_TESTS_C+=	pmc_log_test
 ATF_TESTS_C+=	pmc_wrap_test