From 62d02a8f74fed16f4e536dc66a1cf0dbb61e59bc Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 7 Feb 2017 06:34:02 +0000 Subject: [PATCH] Add #else case in run(..) to fix test on non-{amd64,arm64,mips} after recent refactoring to the test --- contrib/netbsd-tests/lib/libc/sys/t_getcontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c b/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c index f00d6367a9d..102c79fc787 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c @@ -133,6 +133,9 @@ ATF_TC_BODY(setcontext_link, tc) /* FreeBSD/mips only permits up to 6 arguments. */ makecontext(&uc[i], (void *)run, 6, i, 0, 1, 2, 3, 4); +#else + makecontext(&uc[i], (void *)run, 10, i, + 0, 1, 2, 3, 4, 5, 6, 7, 8); #endif #else makecontext(&uc[i], (void *)run, 10, i,