t_getgroups.c (272458) | t_getgroups.c (273517) |
---|---|
1/* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ 2 3/*- 4 * Copyright (c) 2011 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jukka Ruohonen. --- 43 unchanged lines hidden (view full) --- 52 53 errno = 0; 54 55 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1); 56 ATF_REQUIRE(errno == EFAULT); 57 58 errno = 0; 59 | 1/* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ 2 3/*- 4 * Copyright (c) 2011 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jukka Ruohonen. --- 43 unchanged lines hidden (view full) --- 52 53 errno = 0; 54 55 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1); 56 ATF_REQUIRE(errno == EFAULT); 57 58 errno = 0; 59 |
60#if defined(__FreeBSD__) 61 atf_tc_expect_fail("Reported as kern/189941"); 62#endif |
|
60 ATF_REQUIRE(getgroups(-1, gidset) == -1); 61 ATF_REQUIRE(errno == EINVAL); 62} 63 64ATF_TC(getgroups_getgid); 65ATF_TC_HEAD(getgroups_getgid, tc) 66{ 67 atf_tc_set_md_var(tc, "descr", "Test getgid(2) from getgroups(2)"); --- 104 unchanged lines hidden --- | 63 ATF_REQUIRE(getgroups(-1, gidset) == -1); 64 ATF_REQUIRE(errno == EINVAL); 65} 66 67ATF_TC(getgroups_getgid); 68ATF_TC_HEAD(getgroups_getgid, tc) 69{ 70 atf_tc_set_md_var(tc, "descr", "Test getgid(2) from getgroups(2)"); --- 104 unchanged lines hidden --- |