summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add some tests from PR 166463. Also make sure that all of the tests,das2012-04-071-7/+33
| | | | | old and new, check the sign bits of both the remainder and the quotient.
* libc: Add some tests for fmtmsg().jilles2012-02-212-1/+252
|
* Add .t files for tests, missed in prior checkins, so that prove(1) worksdas2012-01-143-0/+30
| | | | in this directory.
* Update the tests for arm and other ports where long double is the samedas2012-01-141-3/+3
| | | | as double, similar to r178141.
* Fix a test that doesn't work on architectures where long double is nodas2012-01-141-0/+2
| | | | wider than double. Thanks to Ian Lepore for catching the bug.
* Spelling fixes for tools/uqs2011-12-301-1/+1
| | | | Add some $FreeBSD$ tags so svn will allow the commit.
* A regression test to ensure that arc4random returns different sequencesdas2011-11-152-1/+91
| | | | in parent and child processes after a fork.
* Add regression tests for modf{,f,l}().das2011-10-211-26/+108
|
* Tests for complex trig and hyperbolic functions.das2011-10-213-1/+552
|
* Tests for cancellation in fma(). Also include more tests for 128-bitdas2011-10-211-3/+63
| | | | | long doubles. Thanks for clusteradm (simon) for making the needed hardware available.
* Add some tests for corner cases of log() in unusual rounding modes.das2011-10-151-2/+29
| | | | I wrote these ages ago, but they've been failing until now.
* Add some tests for double-rounding bugs in fma().das2011-10-151-1/+54
|
* posix_spawn: If an error is detected in the child process, reap the zombie.jilles2011-07-102-1/+91
| | | | | | | | | | Formerly, in this case an error was returned but the pid was also returned to the application, requiring the application to use unspecified behaviour (the returned pid in error situations) to avoid zombies. Now, reap the zombie and do not return the pid. MFC after: 2 weeks
* Allow strerror(0) and strerror_r(0, ...).jilles2011-04-051-8/+13
| | | | | | | | | | | | | Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 MFC after: 1 week
* Add some tests for cexp() and cexpf(). (I need to clean up all ofdas2011-03-073-1/+391
| | | | | these tests some day, but in the mean time, they're a useful sanity check for future changes.)
* Work around gcc constant folding bugs.das2010-12-061-1/+6
|
* signbit() returns nonzero for negative arguments, but we shouldn't assumedas2010-12-066-6/+8
| | | | that it always returns the same nonzero value.
* Fix some warnings.das2010-12-051-3/+3
|
* Add regression tests for logarithmic functions in the math library.das2010-12-053-1/+169
|
* Add some basic regression tests for nearbyint().das2010-12-033-1/+111
|
* Generate some tests for sh's case command from the fnmatch tests.jilles2010-05-092-1/+55
| | | | | I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and they are small and will not change much.
* fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.jilles2010-04-161-0/+1
| | | | | | | Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD) PR: 116074 MFC after: 1 week
* Add some tests for fnmatch(3).jilles2010-04-162-1/+336
| | | | MFC after: 1 week
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-031-7/+0
| | | | | | their software. Obtained from: NetBSD
* 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
|
* wordexp(3): fix some bugs with signals and long outputsjilles2009-10-231-0/+42
| | | | | | | | | | | | * retry various system calls on EINTR * retry the rest after a short read (common if there is more than about 1K of output) * block SIGCHLD like system(3) does (note that this does not and cannot work fully in threaded programs, they will need to be careful with wait functions) PR: 90580 MFC after: 1 month
* Update copyright.des2009-10-191-1/+1
|
* Remove redundant $FreeBSD$.des2009-10-191-2/+0
|
* Regression tests for r197752 (handling of empty/NULL buffers).das2009-10-041-1/+20
|
* Check that flopen() can lock against self and that children inherit the lock.des2009-06-061-6/+41
|
* Return -1 instead of 0 upon reaching EOF. This is somewhat ill-adviseddas2009-04-061-2/+2
| | | | | | | | because it means getdelim() returns -1 for both error and EOF, and never returns 0. However, this is what the original GNU implementation does, and POSIX inherited the bug. Reported by: marcus@
* Tests for getdelim().das2009-02-282-1/+169
|
* Add a file containing tests for simple format specifiers.das2009-02-282-1/+157
| | | | | Currently it only has tests for a few sign issues with integer formats, including PR 131880.
* Tests for wcscasecmp(), wcsnlen(), and stpncpy().das2009-02-284-1/+269
|
* Rename all symbols in libmp(3) to mp_*, just like Solaris.ed2009-02-261-59/+59
| | | | | | | | | | | | The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky
* Test wprintf() in addition to printf().das2009-01-311-3/+19
|
* Add tests for conj{,f,l}() that I wrote some time ago. These test thedas2009-01-313-1/+169
| | | | versions in libm, not the gcc builtins.
* #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.
* Regression tests for bugs in gdtoa.das2008-09-031-11/+17
|
* Test that the result is correctly rounded when |y/x| is huge.das2008-08-021-16/+9
|
* Regression tests for fmtcheck(3).das2008-08-022-1/+103
| | | | Obtained from: NetBSD
* Add some tests for acos*(), asin*(), atan*(), and atan2*().das2008-07-313-1/+504
|
* Add regression tests for fmin{,f,l} and fmax{,f,l}.das2008-07-033-1/+161
| | | | | | | | I wrote these to test amd64 asm functions that used maxss, maxsd, minss, and minsd, but it turns out that those instructions don't handle NaNs and signed zero in the same way as fmin() and fmax() are required to, so we're stuck with the C versions for now.
* Add some regression tests for printf() with positional arguments.das2008-06-292-1/+133
| | | | | | | | | The first test comes from OpenBSD, and the others are additions or adaptations. This is based on OpenBSD's src/regress/lib/libc/sprintf/sprintf_test.c, v1.3. I deliberately did not use v1.4 because it's bogus.
* Regression test for a recently fixed strtod bug.das2008-06-211-1/+11
|
* 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
OpenPOWER on IntegriCloud