summaryrefslogtreecommitdiff
path: root/tools/regression/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Add regression tests for logarithmic functions in the math library.David Schultz2010-12-053-1/+169
| | | | Notes: svn path=/head/; revision=216214
* Add some basic regression tests for nearbyint().David Schultz2010-12-033-1/+111
| | | | Notes: svn path=/head/; revision=216139
* Generate some tests for sh's case command from the fnmatch tests.Jilles Tjoelker2010-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. Notes: svn path=/head/; revision=207821
* fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.Jilles Tjoelker2010-04-161-0/+1
| | | | | | | | | | Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD) PR: 116074 MFC after: 1 week Notes: svn path=/head/; revision=206711
* Add some tests for fnmatch(3).Jilles Tjoelker2010-04-162-1/+336
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=206710
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-031-7/+0
| | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204627
* Add test-pidfile.c and increase warning level.Dag-Erling Smørgrav2009-11-121-2/+2
| | | | Notes: svn path=/head/; revision=199214
* Test cases for pidfile(3) - including two designed to catch issues arisingDag-Erling Smørgrav2009-11-121-0/+280
| | | | | | | from the incorrect use of fcntl(2) instead of flock(2). Notes: svn path=/head/; revision=199213
* Fix warnings and remove one unnecessary use of vfork(). The other couldDag-Erling Smørgrav2009-11-121-9/+3
| | | | | | | also be removed with a little more work. Notes: svn path=/head/; revision=199212
* Fix warningsDag-Erling Smørgrav2009-11-123-7/+9
| | | | Notes: svn path=/head/; revision=199211
* Check fork() return valueDag-Erling Smørgrav2009-11-101-2/+5
| | | | Notes: svn path=/head/; revision=199134
* wordexp(3): fix some bugs with signals and long outputsJilles Tjoelker2009-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 Notes: svn path=/head/; revision=198406
* Update copyright.Dag-Erling Smørgrav2009-10-191-1/+1
| | | | Notes: svn path=/head/; revision=198225
* Remove redundant $FreeBSD$.Dag-Erling Smørgrav2009-10-191-2/+0
| | | | Notes: svn path=/head/; revision=198224
* Regression tests for r197752 (handling of empty/NULL buffers).David Schultz2009-10-041-1/+20
| | | | Notes: svn path=/head/; revision=197753
* Check that flopen() can lock against self and that children inherit the lock.Dag-Erling Smørgrav2009-06-061-6/+41
| | | | Notes: svn path=/head/; revision=193592
* Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advisedDavid Schultz2009-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@ Notes: svn path=/head/; revision=190773
* Tests for getdelim().David Schultz2009-02-282-1/+169
| | | | Notes: svn path=/head/; revision=189142
* Add a file containing tests for simple format specifiers.David Schultz2009-02-282-1/+157
| | | | | | | | Currently it only has tests for a few sign issues with integer formats, including PR 131880. Notes: svn path=/head/; revision=189141
* Tests for wcscasecmp(), wcsnlen(), and stpncpy().David Schultz2009-02-284-1/+269
| | | | Notes: svn path=/head/; revision=189140
* Rename all symbols in libmp(3) to mp_*, just like Solaris.Ed Schouten2009-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 Notes: svn path=/head/; revision=189092
* Test wprintf() in addition to printf().David Schultz2009-01-311-3/+19
| | | | Notes: svn path=/head/; revision=187963
* Add tests for conj{,f,l}() that I wrote some time ago. These test theDavid Schultz2009-01-313-1/+169
| | | | | | | versions in libm, not the gcc builtins. Notes: svn path=/head/; revision=187962
* #ifdef out the lock-against-self test. I'm not sure it makes sense, andDag-Erling Smørgrav2008-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. Notes: svn path=/head/; revision=184090
* Regression tests for bugs in gdtoa.David Schultz2008-09-031-11/+17
| | | | Notes: svn path=/head/; revision=182711
* Test that the result is correctly rounded when |y/x| is huge.David Schultz2008-08-021-16/+9
| | | | Notes: svn path=/head/; revision=181206
* Regression tests for fmtcheck(3).David Schultz2008-08-022-1/+103
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=181155
* Add some tests for acos*(), asin*(), atan*(), and atan2*().David Schultz2008-07-313-1/+504
| | | | Notes: svn path=/head/; revision=181076
* Add regression tests for fmin{,f,l} and fmax{,f,l}.David Schultz2008-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. Notes: svn path=/head/; revision=180237
* Add some regression tests for printf() with positional arguments.David Schultz2008-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. Notes: svn path=/head/; revision=180103
* Regression test for a recently fixed strtod bug.David Schultz2008-06-211-1/+11
| | | | Notes: svn path=/head/; revision=179919
* Add four utility functions related to struct grp processing modeled in-partSean Farley2008-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 Notes: svn path=/head/; revision=178431
* Updates for changes in the way printf() handles hex floating pointDavid Schultz2008-04-121-5/+5
| | | | | | | numbers. Notes: svn path=/head/; revision=178141
* Add some tests for fma(), fmaf(), and fmal().David Schultz2008-04-033-1/+424
| | | | Notes: svn path=/head/; revision=177876
* Test remainderl() and remquol() as well.David Schultz2008-03-301-4/+34
| | | | Notes: svn path=/head/; revision=177767
* Add some minimal tests for csqrtl().David Schultz2008-03-301-59/+88
| | | | Notes: svn path=/head/; revision=177763
* Don't run tests that assume <= 64-bit precision on machines with quadDavid Schultz2008-03-021-8/+20
| | | | | | | precision. Notes: svn path=/head/; revision=176748
* Some basic regression tests for {sin,cos,tan}{,f,l}().David Schultz2008-02-183-1/+293
| | | | Notes: svn path=/head/; revision=176379
* There are 3 tests here, not 2.David Schultz2008-02-171-1/+1
| | | | Notes: svn path=/head/; revision=176375
* expm1(-big) generates an inexact exception but not underflow.David Schultz2008-01-181-1/+1
| | | | Notes: svn path=/head/; revision=175467
* Add some regression tests for libm's exponential functions. TheseDavid Schultz2008-01-183-1/+181
| | | | | | | | | | mostly just test corner cases rather than accuracy. Some of the tests don't pass right now if you compile libm at -O2 due to gcc constant-folding some things that it shouldn't. I'll fix that shortly. Notes: svn path=/head/; revision=175463
* Tests for lrintl() and llrintl(). I didn't add anything speciallyDavid Schultz2008-01-141-5/+22
| | | | | | | | tailored for the long double format; instead, I just modified the existing tests to test lrintl() and llrintl() as well. Notes: svn path=/head/; revision=175310
* Fix an amusing typo that has prevented this from compiling since 2004.David Schultz2007-12-161-7/+7
| | | | Notes: svn path=/head/; revision=174692
* Don't try the long double tests on i386. Our reduced precisionDavid Schultz2007-12-161-1/+1
| | | | | | | can cause them to fail. Notes: svn path=/head/; revision=174691
* Remove another Alpha remnant.David Schultz2007-12-161-1/+0
| | | | Notes: svn path=/head/; revision=174688
* Regression tests for nan{,f,l}().David Schultz2007-12-163-1/+133
| | | | Notes: svn path=/head/; revision=174685
* Regression tests for csqrt(3).David Schultz2007-12-153-1/+306
| | | | Notes: svn path=/head/; revision=174619
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)David Schultz2007-12-091-4/+0
| | | | Notes: svn path=/head/; revision=174495
* Fixes to avoid overzealous constant folding.David Schultz2007-12-091-13/+15
| | | | Notes: svn path=/head/; revision=174494
* gcc 4 does some overzealous constant folding, and since it doesn'tDavid Schultz2007-12-091-1/+6
| | | | | | | | support FENV_ACCESS, that was causing this test to fail. Use a volatile to avoid the constant folding. Notes: svn path=/head/; revision=174491