martin
ed3f875e0a
gcc constant folding at compile time works around the real points of these
...
tests - so enforce -O0.
2007-11-07 00:08:50 +00:00
martin
b7145352b8
Add another cast variant that might (and currently does) fail - pointed
...
out by Holger Weiss on port-sparc64.
2007-11-07 00:03:09 +00:00
tnozaki
0941b12b16
lib/36938 mbtowc misbehaving after invalid char sequence
...
- make sure to initialize mbtowc's internal state.
- add regression test.
2007-09-18 15:12:07 +00:00
ad
b5d1c4ed09
Block SIGALRM in the 'setup' thread, otherwise the alarm may not be taken
...
by the thread in sigsuspend().
2007-09-09 01:08:56 +00:00
drochner
f0a00b4ec9
humble beginnings of regression tests for libm functions: test for
...
a longstanding bug in round()/roundf() which I will pull in a fix
for (from FreeBSD) in a minute
2007-08-21 19:52:36 +00:00
joerg
306d03018d
A regression test is much more useful, if it passes itself on correct
...
input.
2007-07-16 19:04:18 +00:00
ginsbach
15b661abe9
Fix several end cases:
...
o If a long option looks like an ambiguous abbreviation of two or more long
options, but all the possible interpretations would return the same
value, then just return that value without complaining that it's
ambiguous.
o If a long option could be interpreted either as an exact match for one
long option, or as an abbreviation for one or more other long options,
then treat it as the exact match.
These changes align NetBSD's getopt_long(3) with the current behavior of
GNU getopt_long(3), the de facto standard, and FreeBSD's getopt_long(3).
2007-07-05 16:05:40 +00:00
ginsbach
67a9c3250c
Remove debugging code accidently left in the original commit. This should
...
make the test a bit less verbose.
2007-06-19 20:44:28 +00:00
he
71da552ff1
If HAS_SSP == "no", don't descend into the ssp subdirectory, because
...
building there will fail.
2007-06-02 11:09:22 +00:00
martin
e26aa3fe3e
backout previous - needs more investigation
2007-06-01 17:15:19 +00:00
martin
0b39ba0208
This LDFLAGS setting looks like a copy&pasto
2007-06-01 16:54:11 +00:00
christos
be230fb632
moved to libc/ssp
2007-05-31 21:52:31 +00:00
christos
5d8aa4c7a5
ssp is now part of libc.
2007-05-31 21:51:48 +00:00
tls
ac86b16c1e
disable libssp regress until Christos fixes it
2007-05-30 19:49:49 +00:00
dogcow
980bf56bd3
fallout from si_sigval -> si_value
2007-05-21 20:18:01 +00:00
christos
81ef0c79d1
s/si_sigval/si_value/ From Blair Sadewitz.
2007-05-21 20:02:40 +00:00
enami
d4d6c3ff03
Rephrase the comment slightly to note that which revision of
...
humanize_number.c fails to handle these cases.
2007-03-13 02:56:18 +00:00
enami
1e59139e04
Make -DINTREE (a flag to tell make(1) to build the test program
...
with using in tree humanize_number.c) works again.
2007-03-12 03:39:57 +00:00
enami
1a453a687f
Add failure case reported by Greg Troxel.
2007-03-12 03:38:21 +00:00
drochner
89d741cf50
initialize line counter for fparseln()
2007-03-07 15:13:50 +00:00
christos
016db3548e
make this compile with -DSTATISTICS
2007-02-03 23:46:40 +00:00
christos
980e6dca8f
- knf, ansi, lint etc.
2007-02-03 23:04:04 +00:00
christos
ecb577caf1
- errors to stderr
...
- improve some shell syntax: $() instead of `` and ! prog instead of else
kludge
- use getopts.
- add usage
2007-02-03 20:59:34 +00:00
christos
fff7c9f19d
misc cleanups.
2007-02-03 20:39:05 +00:00
ad
1a6c900ae4
Disable the conddestroy1 test. IEEE Std 1003.1, 2004 Edition says:
...
If a signal is delivered to a thread waiting for a condition
variable, upon return from the signal handler the thread resumes
waiting for the condition variable as if it was not interrupted,
or it shall return zero due to spurious wakeup.
2007-01-20 19:40:06 +00:00
christos
14eb5e3c17
change count from 5M to 50000
2007-01-20 19:22:29 +00:00
christos
9dffc0237c
change 5M to 50000; add more printfs.
2007-01-20 19:21:18 +00:00
ginsbach
089d34fd42
Add a small regression test for getopt_long(3).
2007-01-18 16:29:21 +00:00
ad
f87898b1c5
Signal masks are thread private, and there is no guarantee of the order in
...
which the two signal handlers in this test will execute, at least not beyond
SIGUSR1 being caught first, and SIGUSR2 being caught after that. One way
that it can fail erroneously is:
2 kill(getpid(), SIGUSR1)
2 Receive signal SIGUSR1
2 kill(getpid(), SIGUSR2)
1 Receive signal SIGUSR2
1 Exit handler
2 Exit handler
So if the handlers appear not to have run in sequence, at least verify
that they were run by different threads.
2006-12-26 20:29:03 +00:00
ad
188b195635
Fix this test (it seems to have depended on the specific behaviour of
...
our libpthread).
2006-12-23 17:44:12 +00:00
christos
1665d5e960
fix spelling of accommodate; from Zapher.
2006-11-24 19:46:58 +00:00
ginsbach
dca2bdf5fa
- print lineno as the line number in error rather than line
...
- use errx(3) instead of err(3) since errno is not set; all the calls are
for input parse errors which don't set errno
2006-11-16 21:34:53 +00:00
he
f50e36b715
Move settings of CLEANFILES and LDFLAGS outside the conditional, so that
...
the dummy libssp_nonshared.a file will be cleaned under clean/cleandir.
2006-11-12 15:18:29 +00:00
christos
eef8c97c9c
Don't disable the tests, otherwise 'make obj', 'make clean', or 'make cleandir'
...
will create the archive.
2006-11-12 01:41:46 +00:00
he
6c94afac43
Disable the libssp regression tests for alpha, mips and hppa. These
...
architectures do not have -fstack-protector support in gcc (yet).
2006-11-11 23:37:18 +00:00
he
b3c318d9a6
Make this bootstrap hack actually work:
...
o Correct typo in library file name.
o Comment out conditionals around the bootstrap hack.
At least CLEANFILES+= needs to be set for cleandir.
The conditional doesn't appear to do the right thing under
the dependall target either, for some strange unknown reason.
Committing this so that we get back buildability...
2006-11-11 11:23:39 +00:00
christos
743785267a
add a hack to build a fake libssp-nonshared.a for bootstrapping.
2006-11-11 06:42:49 +00:00
christos
499f07fbc0
use malloc instead of alloca.
2006-11-10 17:38:33 +00:00
christos
7a23599e76
add LDADD + DPADD for libssp. Pointed out by Geoff Wing.
2006-11-09 17:08:04 +00:00
christos
3ad047d4fd
descend into libssp
2006-11-08 21:02:10 +00:00
christos
2da147ae0e
add libssp regression tests.
2006-11-08 21:01:35 +00:00
oster
152ad1389e
Fix a race condition in the sigchld regression test. It is now possible
...
to run 200 simultanous copies of the sigchld regression test without
some of them missing their signals. From yamt via mrg. Thanks!
2006-11-04 00:08:34 +00:00
christos
5bf68024f1
add regression test for stresep.
2006-08-12 23:51:12 +00:00
christos
2275570860
add servent back.
2006-07-27 22:10:32 +00:00
christos
1ec46ff7b0
Improve the test to test all the functions and not the re-entrant copies.
2006-07-27 22:09:58 +00:00
thorpej
77bbac0046
Test program for some basic proplib functionality. Not hooked up to the
...
regression suite yet.
2006-05-28 03:57:57 +00:00
jnemeth
34d9535669
Coverity CID 829: Possible dereference of NULL pointer.
2006-05-23 21:52:55 +00:00
christos
441afb8953
Add regression tests from PR/24324 by Arne H Juul
2006-05-17 21:12:23 +00:00
mrg
249a83a430
sprinkle some (char *) to pacify GCC4.
2006-05-12 01:56:39 +00:00
mrg
b141b31103
include <string.h>, <stdio.h> and <stdlib.h> as appropriate.
2006-05-10 19:07:22 +00:00
simonb
1525687690
Copy sysconf(_SC_SEMAPHORES) test from regress/lib/librt/sem/sem.c
...
so we abort a bit more gracefully if semaphores aren't configured
in the kernel.
2006-04-18 12:21:05 +00:00
tnozaki
9d0aec986d
replaced by FreeBSD version wcstod(3) for make it work
...
with L"inf", L"nan", and hex conversion.
suggested by jeorg AT netbsd DOT org, thanks.
2006-04-13 01:25:13 +00:00
cube
d84fe1a4d1
The manual for open(2) says that -1 indicate a failure, not 0. And I
...
really don't think testing the behaviour of open(2) is the subject of that
regression test. Maybe it was a developer regression test? Do I get a
cookie?
2006-04-12 14:01:52 +00:00
drochner
d9956871be
link against libm
2006-03-21 18:34:22 +00:00
christos
b9b4a8cc41
Use sig_atomic_t
2006-03-20 00:22:38 +00:00
martin
8d15124682
This test is highly dependend on local configuration - note some
...
pitfalls.
2006-03-17 11:33:24 +00:00
rpaulo
afcaa10a27
Refactor this test suite for v4-only and dual-stack hosts.
...
XXX: We will need to re-visit this regression test when we add IPv6
only support in the kernel.
2006-03-16 16:24:23 +00:00
kleink
ff12504c9c
Add a printf regression test; for now covering lib/32951.
2006-02-28 19:30:45 +00:00
drochner
02008493db
test some basic operations with subnomal numbers
2006-02-21 16:36:57 +00:00
drochner
814f8ea6a5
fix pasto in comment
2006-02-20 17:14:33 +00:00
perry
0be44b35dc
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 21:22:46 +00:00
ross
ba316f8199
Add memcpy test.
2005-12-06 08:14:48 +00:00
is
4493beadad
Make messages more useful.
2005-12-02 16:44:54 +00:00
is
6d07524f33
Ensure that thread context switches will leave the floating point
...
computations unharmed.
Adapted from a similar test program from the MPD implementation by the
CS department of The University of Arizona.
2005-12-01 16:03:36 +00:00
christos
64a43eb2f4
test for new functions.
2005-11-25 20:07:14 +00:00
drochner
c5d5b5030f
also check a double argument to isnan(), and whether
...
float -> double conversion works
2005-10-20 18:02:52 +00:00
tnozaki
641c362cb9
add wcsncpy test.
2005-10-13 21:36:11 +00:00
tnozaki
d1a646444f
wcsncpy - SUSv6: if s2 is shorter than n, s1 should be filled with L'\0' until n.
2005-10-13 21:15:49 +00:00
drochner
c968476ae0
don't rely on undocumented behaviour: we don't know which thread
...
the signal is delivered to
(without that pthread_sigmask(), the test fails also on Linux)
2005-08-29 18:52:16 +00:00
drochner
4b58be0197
rely a bit less on undocumented behaviour: we don't know which thread
...
the signal is delivered to, and we can't be sure it is delivered
synchonously
(without that sleep(), the test fails also on Linux)
2005-08-29 18:49:14 +00:00
christos
4811c2fc79
10 seconds is more than enough time to wait.
2005-07-27 00:02:14 +00:00
christos
e3c185442d
Add another regression test.
2005-07-26 20:44:47 +00:00
nathanw
5baf7dff84
Oops, don't include an extra bonus deadlock.
2005-07-16 23:12:02 +00:00
nathanw
ae6f5e4bba
Add once3 test.
2005-07-16 23:02:24 +00:00
nathanw
5f424e4d7c
Add a test for pthread_once() calling a function which is cancelled,
...
as described in PR lib/30734.
2005-07-16 23:02:11 +00:00
christos
5ea0e661bc
Add a test for 4 char key and value insert on a 65536 bucket size hash.
...
From Juergen Hannken-Illjes
2005-04-27 23:37:34 +00:00
nathanw
d8ecca20ed
Add sleep1 test.
2005-04-19 16:36:44 +00:00
nathanw
5f1f443991
Add a regression test for sleeping past the time when time_t wraps; the
...
program should start sleeping, not throw a libpthread assertion failure.
2005-04-19 16:36:34 +00:00
provos
bdc32cfad7
update to libevent-1.0c. This includes support for event priorities,
...
multi-threaded applications and some bug fixes. regression test
improved to test for new features. bump major.
2005-04-17 07:20:00 +00:00
christos
16339a29a1
Make sure that sign extension does not happen when we convert to wide
...
characters. From Miloslav Trmac
2005-03-27 18:49:51 +00:00
christos
9bebb1e48e
Descend into mbtowc
2005-03-27 18:48:45 +00:00
christos
fd1b20b859
Descend into citrus.
2005-03-27 18:48:10 +00:00
christos
01d5ed066a
Compile with -DOPENSSL_FIPS
2005-03-26 02:21:11 +00:00
christos
e911ab7deb
Add jtc's regression tests. I decided to split them finally to follow suit.
2005-03-15 15:57:58 +00:00
perry
210055fd90
add regression tests for memmem(3)
2005-03-13 15:40:32 +00:00
perry
6439a725d3
move swab regression test to subdir
2005-03-13 15:33:45 +00:00
christos
192c2eccf6
Add -lcrypt where -lcrypto is specified.
2005-03-09 03:11:22 +00:00
christos
ceb0805a9b
Add -lcrypt where -lcrypto is specified.
2005-03-09 03:11:21 +00:00
he
dc60e3b6f4
sig_atomic_t isn't necessarily compatible with the %d printf format,
...
so cast to int before printing. The value appears to be either 1 or 2,
so no information should be lost this way.
2005-03-05 14:34:29 +00:00
dsl
f93da09d3d
Add a -v (verbose) flag
2005-03-05 14:07:55 +00:00
martin
1f4b8e2aae
Field width has to be int - ptrdiff_t might be something larger.
2005-03-05 07:48:47 +00:00
dsl
9707cf749d
Add regression tests for strptime()
2005-03-04 21:42:40 +00:00
nathanw
72cd26914f
Add sigmask2 and sigmask3 to SUBDIR.
2005-03-03 18:47:23 +00:00
nathanw
5394d17172
Add a second flag to indicate whether handler2 ran at all.
2005-02-26 20:12:58 +00:00
nathanw
17b913020a
Test for proper sigmask handling in a signal handler with threads running.
2005-02-26 20:08:14 +00:00
nathanw
cdf12b0168
Add a test for proper signal mask handling when threads are not yet started.
2005-02-26 20:03:25 +00:00
simonb
3cebd9325e
White space nit- don't put a space before/after increment/decrement
...
operators.
2005-02-11 06:21:21 +00:00
perry
dd334ae584
de-__P, remove obsolete "register" declarations.
2005-02-06 06:05:18 +00:00
yamt
cd4834a432
test pthread_detach.
2005-01-21 11:54:24 +00:00
kleink
5146404da8
Rename wprintf() to w_printf() to prevent a clash with the 9899/AMD1
...
function of the same name; suggested by J.T. Conklin on tech-userlevel.
2005-01-19 14:13:21 +00:00