Enable the kcov tests on supported architectures

i386 and 32-bit powerpc lack support for the needed atomic operations
in userspace.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-04-07 14:31:32 +01:00
parent 41e6d2091c
commit 1b7d882f00
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,10 @@ TESTSRC= ${SRCTOP}/contrib/netbsd-tests/kernel
TESTSDIR= ${TESTSBASE}/sys/kern
ATF_TESTS_C+= basic_signal
#ATF_TESTS_C+= kcov
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "powerpc"
# No support for atomic_load_64 on i386 or (32-bit) powerpc
ATF_TESTS_C+= kcov
.endif
ATF_TESTS_C+= kern_copyin
ATF_TESTS_C+= kern_descrip_test
ATF_TESTS_C+= fdgrowtable_test

View File

@ -340,7 +340,7 @@ ATF_TC_BODY(kcov_thread_cmp, tc)
}
struct multi_thread_data {
char *buf;
uint64_t *buf;
int fd;
u_int mode;
int thread;