summaryrefslogtreecommitdiff
path: root/lib/libc/tests/nss/getgr_test.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix various -Wpointer-compare warningsBrooks Davis2019-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk. Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface. Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914 Notes: svn path=/head/; revision=353326
* getgr_test: fix -Wunused warningsEnji Cooper2017-05-281-2/+2
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319044
* Fix -Wsign-compare warningsEnji Cooper2017-05-281-2/+2
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319030
* Staticize functions and remove unused variables to aid with bumping WARNSEnji Cooper2017-05-281-2/+0
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319029
* lib/libc/tests/nss: use calloc appropriatelyEnji Cooper2017-05-281-1/+1
| | | | | | | | | | | The pattern used prior to this commit was `calloc(1, n * sizeof(type))`; the pattern that should be used however is `calloc(n, sizeof(type))`. MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319027
* Move ATF_TC_WITHOUT_HEAD(getgrent) near the testcase it annotatesEnji Cooper2017-03-061-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314807
* Support spaces in group names.Bryan Drewery2016-12-061-5/+10
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309659
* Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asEnji Cooper2015-12-161-0/+541
lib/libc/tests/nss - Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292323