summaryrefslogtreecommitdiff
path: root/tools/regression/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* libc: Add a missing header to a test program.Jilles Tjoelker2012-12-081-0/+1
| | | | | | | Usage of dup(), mkstemp() and unlink() needs <unistd.h>. Notes: svn path=/head/; revision=244038
* Non-void function should return a value.Ed Maste2012-11-201-1/+1
| | | | | | | Found by: clang Notes: svn path=/head/; revision=243346
* remove duplicate semicolons where possible.Eitan Adler2012-10-221-1/+1
| | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=241844
* nftw(): POSIX says directories causing loops should be silently skipped.Jilles Tjoelker2012-08-092-1/+142
| | | | | | | Formerly, loops caused nftw() to abort the traversal with ELOOP. Notes: svn path=/head/; revision=239160
* libc: Add some tests for fmtmsg().Jilles Tjoelker2012-02-212-1/+252
| | | | Notes: svn path=/head/; revision=231984
* Add .t files for tests, missed in prior checkins, so that prove(1) worksDavid Schultz2012-01-143-0/+30
| | | | | | | in this directory. Notes: svn path=/head/; revision=230115
* Update the tests for arm and other ports where long double is the sameDavid Schultz2012-01-141-3/+3
| | | | | | | as double, similar to r178141. Notes: svn path=/head/; revision=230114
* Spelling fixes for tools/Ulrich Spörlein2011-12-301-1/+1
| | | | | | | Add some $FreeBSD$ tags so svn will allow the commit. Notes: svn path=/head/; revision=228975
* A regression test to ensure that arc4random returns different sequencesDavid Schultz2011-11-152-1/+91
| | | | | | | in parent and child processes after a fork. Notes: svn path=/head/; revision=227522
* posix_spawn: If an error is detected in the child process, reap the zombie.Jilles Tjoelker2011-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 Notes: svn path=/head/; revision=223907
* Allow strerror(0) and strerror_r(0, ...).Jilles Tjoelker2011-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 Notes: svn path=/head/; revision=220376
* 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
* 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
* Regression tests for r197752 (handling of empty/NULL buffers).David Schultz2009-10-041-1/+20
| | | | Notes: svn path=/head/; revision=197753
* 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
* Test wprintf() in addition to printf().David Schultz2009-01-311-3/+19
| | | | Notes: svn path=/head/; revision=187963
* Regression tests for bugs in gdtoa.David Schultz2008-09-031-11/+17
| | | | Notes: svn path=/head/; revision=182711
* Regression tests for fmtcheck(3).David Schultz2008-08-022-1/+103
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=181155
* 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
* Updates for changes in the way printf() handles hex floating pointDavid Schultz2008-04-121-5/+5
| | | | | | | numbers. Notes: svn path=/head/; revision=178141
* Fix an amusing typo that has prevented this from compiling since 2004.David Schultz2007-12-161-7/+7
| | | | Notes: svn path=/head/; revision=174692
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)David Schultz2007-12-091-4/+0
| | | | Notes: svn path=/head/; revision=174495
* Make sure we set the locale to "C" when testing thousands' separatorDavid Schultz2007-12-031-2/+2
| | | | | | | | support, rather than just "", which refers to the system default based on the environment. Notes: svn path=/head/; revision=174228
* Tests for rounding, and for the leading 0's bug.David Schultz2007-12-031-1/+13
| | | | Notes: svn path=/head/; revision=174205
* - Bugs in gethostbyXXX/getipnodebyXXX regression tests fixed.Michael Bushkov2007-06-242-73/+162
| | | | | | | | | | Tests for getipnodebyXXX functions now cover most number of flags combinations. Approved by: re (kensmith), brooks (mentor) Notes: svn path=/head/; revision=171016
* Add regression tests for ethers(3) functions, including new _r variants.Robert Watson2007-05-133-1/+246
| | | | | | | | | | | | | Four tests currently fail: test_ether_line_bad_1() and test_ether_line_bad_2() due to bugs in ether_line(3). test_ether_ntohost() and test_ether_hostton() due to not being fully implemented tests. Notes: svn path=/head/; revision=169523
* Committing regression tests for all implemented nsswitch databases.Michael Bushkov2007-04-1520-0/+5390
| | | | | | | | | | Detailed description and instructions are in the README file. This work had been basically done during GSoC 2006. Approved by: brooks (mentor) Notes: svn path=/head/; revision=168754
* Remove the test that ensures that when the string "nan(...)" is convertedDavid Schultz2007-01-031-0/+8
| | | | | | | | | to floating-point, the result is a quiet NaN. The current implementation may return a signaling NaN, and the vendor has no plans for changing this, for reasons explained in the comment I added. Notes: svn path=/head/; revision=165754
* Fix cut-and-paste bugs in the regression tests.David Schultz2007-01-031-2/+2
| | | | Notes: svn path=/head/; revision=165748
* Style: NO_MAN doesn't need any value.Ruslan Ermilov2006-03-151-2/+1
| | | | Notes: svn path=/head/; revision=156735
* NOMAN --> NO_MANHajimu UMEMOTO2006-03-071-1/+1
| | | | Notes: svn path=/head/; revision=156391
* add simple test script.Hajimu UMEMOTO2005-05-051-0/+24
| | | | Notes: svn path=/head/; revision=145901
* - add $FreeBSD$.Hajimu UMEMOTO2005-05-041-1/+2
| | | | | | | - enable -r option for regress target. Notes: svn path=/head/; revision=145885
* - add $FreeBSD$.Hajimu UMEMOTO2005-05-041-10/+128
| | | | | | | | | | - do service lookup. - add options to use gethostbyname(3) or getipnodebyname(3) instead of getaddrinfo(3). - add option to do reverse lookup. Notes: svn path=/head/; revision=145860
* This commit was generated by cvs2svn to compensate for changes in r145857,Hajimu UMEMOTO2005-05-043-0/+319
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=145858
| * import of parallel name resolution test.vendor/NetBSD/miscHajimu UMEMOTO2005-05-043-0/+319
| | | | | | | Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=145857
* - Split tests into three rough categories.David Schultz2005-03-011-6/+98
| | | | | | | | | | | | | | - Use fesetround() instead of fpsetround(), and add tests for various rounding modes. - Test that all NaNs generated are quiet. Some of these tests won't pass until problems in vendor sources (gdtoa and gcc) are fixed and new versions imported, but I want to get these changes into the tree before I accidentally blow them away again. :-( Notes: svn path=/head/; revision=142843
* - Split the printfloat test into 11 individually wrapped and packagedDavid Schultz2005-03-012-8/+100
| | | | | | | | | | | | | | | | | tests. (Buy 10, get one free!) The separate categories were already there; they just weren't labeled. - Use fesetround() instead of fpsetround(), since the former is standard and implemented on all supported architectures. Add tests for each rounding mode. - Add additional tests for subnormals. Some of these tests won't pass until problems in vendor sources (gdtoa and gcc) are fixed and new versions imported, but I want to get these changes into the tree before I accidentally blow them away. Notes: svn path=/head/; revision=142842
* Add to CFLAGS.Ruslan Ermilov2005-02-121-1/+1
| | | | Notes: svn path=/head/; revision=141750
* Add to CFLAGS, rather than overriding it. Use LDFLAGS for the -L option,Nik Clayton2005-02-011-2/+3
| | | | | | | | | and LDLIBS to specify -ltap. Submitted by: ru Notes: svn path=/head/; revision=141097
* Link against libtap (ports/devel/libtap). Replace the calls to assert()Nik Clayton2005-02-012-31/+32
| | | | | | | | with calls to libtap::ok1(), and make sure the correct number of tests is planned for, and that the exit code is correct. Notes: svn path=/head/; revision=141092
* Remove regression tests for the obsolete rune interface.Tim J. Robbins2004-11-215-293/+1
| | | | Notes: svn path=/head/; revision=137960
* Switch over to a different, more flexible test output protocol that'sNik Clayton2004-11-1154-38/+364
| | | | | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file. Notes: svn path=/head/; revision=137587