summaryrefslogtreecommitdiff
path: root/regress/lib/libc
AgeCommit message (Collapse)Author
2014-09-27Fix mmap() calls that check for a result other than MAP_FAILED.Doug Hogan
ok tedu@
2014-09-21Add support for word anchors \< and \> to regex regression tests.Doug Hogan
These are copied from the existing [[:<:]] and [[:>:]] tests.
2014-09-19Fix on 32bit platforms where 0xdeadbeef > LONG_MAX.Ingo Schwarze
To avoid making tests machine dependent, only test values inside 32bit LONG_{MIN,MAX} and outside 64bit LONG_{MIN,MAX}, but none in between. While here, cover 32bit edge cases, negative values, and overflows. ok jsing@
2014-08-10AF_IMPLINK and AF_BLUETOOTH are gone, but add printing of SOCK_SEQPACKETPhilip Guenther
2014-07-28remove non-portable __progname extern from arc4random unit test.bcook
ok @deraadt
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20Fix ordering breakage, moving the fclose() test last again.Philip Guenther
Also correct some format strings. From Doug Hogan (doug (at) acyclic.org)
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-20Delete unused variables found by -WallPhilip Guenther
2014-07-20Add missing include. Tickled by Doug Hogan (doug (at) acyclic.org)Philip Guenther
2014-07-11Fix dumb copy/paste mistake.Matthew Dempsky
Noticed testing with clang.
2014-07-11Fix explicit_bzero regress for Solaris and OS X compatibilityMatthew Dempsky
Solaris and OS X clobber the signal stack when returning to the main stack, which caused the original testing strategy (inspecting the signal stack once we're back on the main stack) to fail. To be compatible with this behavior, the regress test now inspects the signal stack space while we're still executing on it. This is a bit iffy because we might clobber it ourselves while inspecting it, but we as long as its not completely clobbered we should be okay. thx bcook for the Solaris test account
2014-07-09Add some extra sanity checks to make sure the test functions actuallyMatthew Dempsky
run on altstack.
2014-07-09Minor cleanupsMatthew Dempsky
Rename _waitpid() to safewaitpid() to avoid POSIX reserved identifier namespace. KNF nit: return value expressions should be surrounded by parentheses, per style(9). Ensure SIGCHLD is set to SIG_DFL, not SIG_IGN. POSIX allows (and requires under XSI) that terminated child processes not leave zombies if SIGCHLD is set to SIG_IGN, and it also allows execve() to leave SIGCHLD set to SIG_IGN.
2014-07-09Better workaround for OS X sigaltstack() bugMatthew Dempsky
OS X's sigaltstack() fails with ENOMEM if ss_size < MINSIGSTKSZ even if SS_DISABLE is specified in ss_flags. Rather than add code to try to cope with this stupidity, just don't bother restoring the original signal stack.
2014-07-09check for EINTR when calling waitpid.bcook
ok jsing@
2014-07-09check if we were previously on a signal stack before restoring.bcook
OS X fails to restore the old signal stack because the signal stack is not enabled by default. This causes sigaltstack(2) to fail with ENOMEM as ss_size is 0, < MINSIGSTCKSZ. ok jsing@
2014-07-03Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.Miod Vallat
2014-06-21matthew reminds me to update regress to reflect current specTed Unangst
2014-06-13Add timingsafe_memcmp().Matthew Dempsky
ok deraadt, jmc, tedu
2014-06-18Always call atexit handlers as if they were registered with __cxa_atexit.Mark Kettenis
The extra argument doesn't hurt genuine atexit handlers and this fixes a bug where we didn't provide the argument (effectively passing garbage) for functions registered with __cxa_atexit in the main executable. Pointed out by Dmitriy Ivanov <dimitry@google.com> and Elliott Hughes <enh@google.com>. ok matthew@
2014-06-18Add regress tests to make sure arc4random(3) is reinitializedMatthew Dempsky
correctly in fork children.
2014-06-13Add regress tests for timingsafe_bcmp and timingsafe_memcmp.Matthew Dempsky
timingsafe_memcmp tests are disabled for now, pending its addition to libc.
2014-06-12Add regress test for explicit_bzero.Matthew Dempsky
2014-06-07Add basic regression test for modf() issue.Tobias Ulmer
encouraged by deraadt and miod
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-04-22gets() is goneLawrence Teo
2013-12-29- Verify that the FPU exception flags weren't clobbered as required by C99.Martynas Venckus
- Additionally, test _setjmp and sigsetjmp as implementations are different.
2013-12-29Add a regression test to verify that the FPU control word state isMartynas Venckus
preserved by setjmp. Currently under REGRESS_FULL as this fails on certain archs.
2013-12-21Fix a commentPhilip Guenther
2013-11-03Add a second test, shortseek(), to make sure that seekdir() also worksIngo Schwarze
correctly when moving the directory pointer by small distances. This is currently failing, i will send an updated libc/gen patch to fix this right afterwards. Move the functions createfiles() and delfiles() to utils.{h,c} for reuse. Minor cleanup in telldir.c.
2013-08-20Include more details in failure messagesPhilip Guenther
2013-08-06Remove support for COMPILER_VERSION == gcc2.Miod Vallat
Change the logic depending upon COMPILER_VERSION everywhere, to assume gcc4 is the norm and to explicitely test for gcc3 when a different behaviour is required. No functional change intended. Be sure to `make install' in share/mk before attempting to do anything.
2013-08-01Some tests are currently failing. Only run those if the REGRESS_FULLMark Kettenis
variable is set.
2013-07-30strptime(3) correctly fills in tm_yday; adjust expected outputMark Kettenis
ok guenther@
2013-06-02trailing whitespace makes 'make depend' sad. ok mpi@Darren Tucker
2013-05-02Hook up fmemopen and open_memstream tests.Martin Pieuchot
2013-04-03Set the stream orientation in open_{,w}memstream().Philip Guenther
Check it in the regress test ok mpi@
2013-04-01tweak makefile now that asr is built by default.Eric Faurot
2013-04-01add hostnames which triggered some bugs.Eric Faurot
2013-03-28add a test case for the icmpv6 issue spotted by naddyEric Faurot
2013-03-28More tests for negative seeks, prodded by matthew@Martin Pieuchot
2012-07-13import regression suite for asrEric Faurot
2013-03-27More test cases, especially when opening the stream in append an writeMartin Pieuchot
modes.
2013-03-25Add some more tests; prodded by mpi@Philip Guenther
2013-03-12Add check that mkstemp() fails with EINVAL if the string has fewer thanPhilip Guenther
6 Xs
2013-01-01Simple tests for fmemopen(3) and open_memstream(3)Martin Pieuchot
2012-12-17add test case for gethostbyname() called with numeric hostnameEric Faurot
2012-12-16- use diff -u like most anywhere to make the output readable.Jasper Lievisse Adriaanse
ok phessler@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis