Ed Maste
c153604de3
Non-void function should return a value.
...
Found by: clang
2012-11-20 19:23:44 +00:00
Eitan Adler
db702c59cf
remove duplicate semicolons where possible.
...
Approved by: cperciva
MFC after: 1 week
2012-10-22 03:00:37 +00:00
Jilles Tjoelker
9d8ca3b2ad
nftw(): POSIX says directories causing loops should be silently skipped.
...
Formerly, loops caused nftw() to abort the traversal with ELOOP.
2012-08-09 22:05:40 +00:00
David Schultz
afbcb86218
Add some tests from PR 166463. Also make sure that all of the tests,
...
old and new, check the sign bits of both the remainder and the
quotient.
2012-04-07 04:00:30 +00:00
Jilles Tjoelker
45ff61e969
libc: Add some tests for fmtmsg().
2012-02-21 23:46:41 +00:00
David Schultz
d302778ed3
Add .t files for tests, missed in prior checkins, so that prove(1) works
...
in this directory.
2012-01-14 21:38:31 +00:00
David Schultz
5d9e02dba4
Update the tests for arm and other ports where long double is the same
...
as double, similar to r178141.
2012-01-14 21:09:54 +00:00
David Schultz
3e7ed66b1e
Fix a test that doesn't work on architectures where long double is no
...
wider than double. Thanks to Ian Lepore for catching the bug.
2012-01-14 08:11:40 +00:00
Ulrich Spörlein
8ce070c1b2
Spelling fixes for tools/
...
Add some $FreeBSD$ tags so svn will allow the commit.
2011-12-30 00:04:11 +00:00
David Schultz
35ee51e291
A regression test to ensure that arc4random returns different sequences
...
in parent and child processes after a fork.
2011-11-15 05:55:15 +00:00
David Schultz
417c551014
Add regression tests for modf{,f,l}().
2011-10-21 06:36:40 +00:00
David Schultz
6fcec4dd2b
Tests for complex trig and hyperbolic functions.
2011-10-21 06:34:38 +00:00
David Schultz
417f648842
Tests for cancellation in fma(). Also include more tests for 128-bit
...
long doubles. Thanks for clusteradm (simon) for making the needed
hardware available.
2011-10-21 06:32:54 +00:00
David Schultz
31b4d3aef3
Add some tests for corner cases of log() in unusual rounding modes.
...
I wrote these ages ago, but they've been failing until now.
2011-10-15 05:28:13 +00:00
David Schultz
9c7781b7a3
Add some tests for double-rounding bugs in fma().
2011-10-15 05:26:16 +00:00
Jilles Tjoelker
9ea47cacda
posix_spawn: If an error is detected in the child process, reap the zombie.
...
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
2011-07-10 14:20:11 +00:00
Jilles Tjoelker
2973057493
Allow strerror(0) and strerror_r(0, ...).
...
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
2011-04-05 21:56:05 +00:00
David Schultz
2dc9da4376
Add some tests for cexp() and cexpf(). (I need to clean up all of
...
these tests some day, but in the mean time, they're a useful sanity
check for future changes.)
2011-03-07 03:15:49 +00:00
David Schultz
443a48f0a1
Work around gcc constant folding bugs.
2010-12-06 00:19:56 +00:00
David Schultz
cf37ce3724
signbit() returns nonzero for negative arguments, but we shouldn't assume
...
that it always returns the same nonzero value.
2010-12-06 00:02:49 +00:00
David Schultz
4a09b0df94
Fix some warnings.
2010-12-05 23:50:49 +00:00
David Schultz
18c5bc2279
Add regression tests for logarithmic functions in the math library.
2010-12-05 22:18:35 +00:00
David Schultz
ee7d7a769c
Add some basic regression tests for nearbyint().
2010-12-03 00:44:31 +00:00
Jilles Tjoelker
4b7fb70199
Generate some tests for sh's case command from the fnmatch tests.
...
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.
2010-05-09 16:15:40 +00:00
Jilles Tjoelker
139ac6b239
fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.
...
Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD)
PR: 116074
MFC after: 1 week
2010-04-16 22:29:24 +00:00
Jilles Tjoelker
bfbe51816a
Add some tests for fnmatch(3).
...
MFC after: 1 week
2010-04-16 22:15:26 +00:00
Joel Dahl
0371d265dc
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
...
their software.
Obtained from: NetBSD
2010-03-03 07:38:12 +00:00
Dag-Erling Smørgrav
2deaa94b6a
Add test-pidfile.c and increase warning level.
2009-11-12 01:37:25 +00:00
Dag-Erling Smørgrav
761ea75d41
Test cases for pidfile(3) - including two designed to catch issues arising
...
from the incorrect use of fcntl(2) instead of flock(2).
2009-11-12 01:37:02 +00:00
Dag-Erling Smørgrav
6830953bc1
Fix warnings and remove one unnecessary use of vfork(). The other could
...
also be removed with a little more work.
2009-11-12 01:34:55 +00:00
Dag-Erling Smørgrav
a2f8e5b371
Fix warnings
2009-11-12 01:33:57 +00:00
Dag-Erling Smørgrav
1a29dc59c5
Check fork() return value
2009-11-10 10:42:48 +00:00
Jilles Tjoelker
364e9ccb9c
wordexp(3): fix some bugs with signals and long outputs
...
* 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
2009-10-23 14:50:11 +00:00
Dag-Erling Smørgrav
b146811680
Update copyright.
2009-10-19 07:56:03 +00:00
Dag-Erling Smørgrav
6026385bf4
Remove redundant $FreeBSD$.
2009-10-19 07:55:13 +00:00
David Schultz
caf17d8660
Regression tests for r197752 (handling of empty/NULL buffers).
2009-10-04 19:44:41 +00:00
Dag-Erling Smørgrav
4138849fa7
Check that flopen() can lock against self and that children inherit the lock.
2009-06-06 19:07:15 +00:00
David Schultz
6685ac34d9
Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advised
...
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@
2009-04-06 13:50:04 +00:00
David Schultz
7fb2aa104f
Tests for getdelim().
2009-02-28 06:39:39 +00:00
David Schultz
e2ef8d9b1d
Add a file containing tests for simple format specifiers.
...
Currently it only has tests for a few sign issues with integer
formats, including PR 131880.
2009-02-28 06:37:10 +00:00
David Schultz
f04a5a6c81
Tests for wcscasecmp(), wcsnlen(), and stpncpy().
2009-02-28 06:34:04 +00:00
Ed Schouten
b3aaa0cc21
Rename all symbols in libmp(3) to mp_*, just like Solaris.
...
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
2009-02-26 21:43:15 +00:00
David Schultz
acb3b7c668
Test wprintf() in addition to printf().
2009-01-31 18:32:39 +00:00
David Schultz
d7b27f3d13
Add tests for conj{,f,l}() that I wrote some time ago. These test the
...
versions in libm, not the gcc builtins.
2009-01-31 18:31:57 +00:00
Dag-Erling Smørgrav
75bd5e763f
#ifdef out the lock-against-self test. I'm not sure it makes sense, and
...
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.
2008-10-20 17:26:30 +00:00
David Schultz
73a3a6581e
Regression tests for bugs in gdtoa.
2008-09-03 07:35:14 +00:00
David Schultz
b1e24d8714
Test that the result is correctly rounded when |y/x| is huge.
2008-08-02 19:21:33 +00:00
David Schultz
4c7c6686c3
Regression tests for fmtcheck(3).
...
Obtained from: NetBSD
2008-08-02 06:03:04 +00:00
David Schultz
eb516506c9
Add some tests for acos*(), asin*(), atan*(), and atan2*().
2008-07-31 22:43:38 +00:00
David Schultz
8bb8d6397d
Add regression tests for fmin{,f,l} and fmax{,f,l}.
...
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.
2008-07-03 23:06:06 +00:00