summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Integrate lib/libutil into the build/kyuangie2014-08-1312-1448/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* don't assert on bad args, instead return an error..jmg2013-10-073-1/+604
| | | | | | | | | | | | | | | 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
* Add test-pidfile.c and increase warning level.des2009-11-121-2/+2
|
* Test cases for pidfile(3) - including two designed to catch issues arisingdes2009-11-121-0/+280
| | | | from the incorrect use of fcntl(2) instead of flock(2).
* Fix warnings and remove one unnecessary use of vfork(). The other coulddes2009-11-121-9/+3
| | | | also be removed with a little more work.
* Fix warningsdes2009-11-123-7/+9
|
* Check fork() return valuedes2009-11-101-2/+5
|
* Update copyright.des2009-10-191-1/+1
|
* Remove redundant $FreeBSD$.des2009-10-191-2/+0
|
* Check that flopen() can lock against self and that children inherit the lock.des2009-06-061-6/+41
|
* #ifdef out the lock-against-self test. I'm not sure it makes sense, anddes2008-10-201-0/+4
| | | | | | 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.
* Add four utility functions related to struct grp processing modeled in-partscf2008-04-233-1/+130
| | | | | | | | | | | | | | | | | | | 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
* Add regression tests for flopen(3).des2007-08-033-1/+189
| | | | Approved by: re (blanket)
* Add regression tests for trimdomain(3).brooks2005-10-055-0/+212
OpenPOWER on IntegriCloud