Commit Graph

14 Commits

Author SHA1 Message Date
apb a39eba5e76 Test parsedate("@-2",...) (should return -2 and not set errno);
and parsedate("@junk",...) (should return -1 and set errno).
We were already testing "@-1".
2013-01-19 15:21:43 +00:00
apb 58e1304b9b * Test that parsedate("@0", ...) returns (time_t)0 regardless of timezone.
* Test that parsedate("@-1", NULL, NULL) returns (time_t)-1
  without setting errno.
2013-01-19 14:03:08 +00:00
christos 6298c31a51 add missing includes 2012-11-04 23:37:02 +00:00
jruoho 72ed5c064e To be on the safe side, use the category/number notation when referring to
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.
2012-03-18 07:14:08 +00:00
christos 5d71dc0bd6 mention the PR# in the description like everyone else. 2012-03-17 21:33:13 +00:00
apb 7cf05991c0 Add some tests for dates several centures into the past and future.
These currently fail, but I'll fix that soon.
2011-12-17 19:07:34 +00:00
jruoho d19079bc52 Add missing __RCSID(3), again. 2011-03-30 17:03:02 +00:00
jruoho 2289b490a3 Add some naive tests for the efun(3) family of debug functions. 2011-03-30 17:02:17 +00:00
jmmv 255271589f Extend pidfile(3) to support creating pid files in arbitrary locations.
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.

Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid.  This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
jmmv a6fb334d92 Clean up some late-night braindeadness:
- Make the pidfile name generation functions return their value as a return
  value, not an output pointer.  And homogenize these into a single function.
- Free allocated memory.  Not truly necessary because the test cases die
  immediately anyway, but nice to do.
- Remove the pidfile__ prefix from test case names.  (This was in advance of
  some changes I want to propose to pidfile(3), but it turns out my approach
  was flawed.  Preemptive smartness is evil!)
2011-03-23 09:13:54 +00:00
jmmv f8d6f5f369 Add some tests for pidfile(3).
I want to touch this module to attempt a feature addition but I need some
tests beforehand!
2011-03-22 23:07:32 +00:00
christos 1f98304948 We don't expect tests to fail anymore. 2010-12-21 00:24:14 +00:00
njoly 198de556b0 Add testcase from PR/44255, that exercize parsedate(3) with sample
strings taken from the manpage.
2010-12-20 16:23:01 +00:00
jmmv c505c44298 Convert the libposix, libprop, librt, libskey and libutil tests to ATF.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.
2010-07-16 13:56:31 +00:00