summaryrefslogtreecommitdiff
path: root/tools/regression/lib/libutil
AgeCommit message (Collapse)Author
2014-08-13Integrate lib/libutil into the build/kyuaEnji Cooper
Remove the .t wrappers Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page humanize_number_test.c: - Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h) Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=269904
2013-10-07don't assert on bad args, instead return an error..John-Mark Gurney
Since so many programs don't check return value, always NUL terminate the buf... fix rounding when using base 1024 (the bug that started it all)... add a set of test cases so we can make sure that things don't break in the future... Thanks to Clifton Royston for testing and the test program... Approved by: re (hrs, glebius) MFC after: 1 week Notes: svn path=/head/; revision=256130
2009-11-12Add test-pidfile.c and increase warning level.Dag-Erling Smørgrav
Notes: svn path=/head/; revision=199214
2009-11-12Test cases for pidfile(3) - including two designed to catch issues arisingDag-Erling Smørgrav
from the incorrect use of fcntl(2) instead of flock(2). Notes: svn path=/head/; revision=199213
2009-11-12Fix warnings and remove one unnecessary use of vfork(). The other couldDag-Erling Smørgrav
also be removed with a little more work. Notes: svn path=/head/; revision=199212
2009-11-12Fix warningsDag-Erling Smørgrav
Notes: svn path=/head/; revision=199211
2009-11-10Check fork() return valueDag-Erling Smørgrav
Notes: svn path=/head/; revision=199134
2009-10-19Update copyright.Dag-Erling Smørgrav
Notes: svn path=/head/; revision=198225
2009-10-19Remove redundant $FreeBSD$.Dag-Erling Smørgrav
Notes: svn path=/head/; revision=198224
2009-06-06Check that flopen() can lock against self and that children inherit the lock.Dag-Erling Smørgrav
Notes: svn path=/head/; revision=193592
2008-10-20#ifdef out the lock-against-self test. I'm not sure it makes sense, andDag-Erling Smørgrav
it relies on non-portable flock(2) semantics. Not only is flock(2) not portable, but on some OSes that do have it, it is implemented in terms of fcntl(2) locks, which are per-process rather than per-descriptor. Notes: svn path=/head/; revision=184090
2008-04-23Add four utility functions related to struct grp processing modeled in-partSean Farley
after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order. - gr_make() Create a string (see group(5)) from a struct grp. - gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory. - gr_scan() Create a struct grp from a string (as produced by gr_make()). MFC after: 3 weeks Notes: svn path=/head/; revision=178431
2007-08-03Add regression tests for flopen(3).Dag-Erling Smørgrav
Approved by: re (blanket) Notes: svn path=/head/; revision=171707
2005-10-05Add regression tests for trimdomain(3).Brooks Davis
Notes: svn path=/head/; revision=150956