summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_getgroups.c
diff options
context:
space:
mode:
authorbluhm <>2020-11-09 23:18:51 +0000
committerbluhm <>2020-11-09 23:18:51 +0000
commitefb3edc776d465c1a27699caefa8c66145e49235 (patch)
tree2233f16128b2705882f46a8369c9f9f47f40af5c /src/regress/lib/libc/sys/t_getgroups.c
parent177c8bed97592db2860f16c04429788b29993027 (diff)
downloadopenbsd-efb3edc776d465c1a27699caefa8c66145e49235.tar.gz
openbsd-efb3edc776d465c1a27699caefa8c66145e49235.tar.bz2
openbsd-efb3edc776d465c1a27699caefa8c66145e49235.zip
Sync libc syscall tests with changes in upstream NetBSD. Use #ifdef
to document differences to NetBSD behaviour, this helps to track upstream. Mark currently failing test as expected failures. So test programs get compiled and executed, but it shows that further investigation is necceassry.
Diffstat (limited to 'src/regress/lib/libc/sys/t_getgroups.c')
-rw-r--r--src/regress/lib/libc/sys/t_getgroups.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regress/lib/libc/sys/t_getgroups.c b/src/regress/lib/libc/sys/t_getgroups.c
index dcef3c16f5..5cecd3031f 100644
--- a/src/regress/lib/libc/sys/t_getgroups.c
+++ b/src/regress/lib/libc/sys/t_getgroups.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_getgroups.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ 1/* $OpenBSD: t_getgroups.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */
2/* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ 2/* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
3 3
4/*- 4/*-
@@ -56,7 +56,11 @@ ATF_TC_BODY(getgroups_err, tc)
56 56
57 errno = 0; 57 errno = 0;
58 58
59#if __OpenBSD__
59 ATF_REQUIRE(getgroups(NGROUPS_MAX, (gid_t *)-1) == -1); 60 ATF_REQUIRE(getgroups(NGROUPS_MAX, (gid_t *)-1) == -1);
61#else
62 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1);
63#endif
60 ATF_REQUIRE(errno == EFAULT); 64 ATF_REQUIRE(errno == EFAULT);
61 65
62 errno = 0; 66 errno = 0;