summaryrefslogtreecommitdiff
path: root/regress/lib/libc
AgeCommit message (Collapse)Author
2017-10-15Add a regression test for ldexp(3).Visa Hankala
2017-08-16test locale priorities and overridesIngo Schwarze
2017-08-16test isalpha_l(3), tolower_l(3), wctype_l(3), iswctype_l(3),Ingo Schwarze
wctrans_l(3), towctrans_l(3), wcscasecmp_l(3), wcsncasecmp_l(3), and strerror_l(3)
2017-08-16test nl_langinfo_l(3), iswalpha_l(3), towupper_l(3)Ingo Schwarze
2017-08-15refactor in preparation for testing more functions; no functional changeIngo Schwarze
2017-08-10first draft of tests for newlocale(3), duplocale(3), uselocale(3)Ingo Schwarze
2017-07-27Sort subdir, run getaddrinfo test, remove vax case.Alexander Bluhm
2017-07-27Sort expected getaddrinfo output in inet4 inet6 order, then theAlexander Bluhm
test passes.
2017-07-27Fix all clang warnings in libc regress and cleanup some make files.Alexander Bluhm
2017-07-27Mark the invalid memory location as volatile, otherwise clang wouldAlexander Bluhm
optimize the access to it with an illegal instruction. But the tests needs a SIGSEGV, it would fail with SIGILL.
2017-07-15Add a test that covers the recently fixed "0x" prefix handling issue.Joel Sing
2017-07-08Run malloc0test with all possible malloc options.Alexander Bluhm
2017-05-27Also test arrays of double and long long.Todd C. Miller
2017-05-22Add timing and test name options.Todd C. Miller
2017-05-22Instead of embedding pre-generated tables from McIlroy's "A KillerTodd C. Miller
Adversary for Quicksort", just include the code to generate them. Also allow the number of elements to be specified on the command line.
2017-05-21correct a return value testJonathan Gray
ok millert@
2017-05-19Add input targeted at the Bentley and McIrlroy quicksort generatedTodd C. Miller
by McIlroy's "A Killer Adversary for Quicksort". This results in quadratic behavior and the test aborts before completion.
2017-05-18use mergesort instead of heapsort when comparing resultsTodd C. Miller
2017-05-17Avoid running the "killer" tests multiple times with the sameTodd C. Miller
parameters.
2017-05-17Add "median of three" killer, as seen in "Introspective Sorting andTodd C. Miller
Selection Algorithms" by David R Musser.
2017-05-17Approximate nlgn instead of using libm. The same approximation mayTodd C. Miller
be used in qsort.c in a later commit.
2017-05-17Add "killer" input from "algorithmic complexity attacks and libcTodd C. Miller
qsort()". This causes quadratic behavior with the 4.4BSD qsort's "switch to insertion sort" optimization when the input appears to be mostly sorted. That optimization was removed in qsort.c r1.12 but it is worth having in the regress test too.
2017-05-17There's no need to track the number of errors (and the counter mightTodd C. Miller
wrap), make it a flag instead. Pointed out by schwarze@
2017-05-17Add qsort(3) regress based on Bentley & McIlroy's "Engineering a Sort Function"Todd C. Miller
2017-04-16Use INT_MAX instead of SIZE_MAX as the maximum file size we can handle.Mark Kettenis
Fixes this test on 64-bit architectures. ok visa@
2017-04-16Define DEF_WEAK like we do for ld.so to fix building this with clang.Mark Kettenis
ok millert@, deraadt@
2017-03-14copy /etc/services in test directoryEric Faurot
2017-03-10refresh the test infrastructure a bit.Eric Faurot
2017-03-09remove bogus variable expansionEric Faurot
2017-03-09missing includeEric Faurot
2012-07-13import regression suite for asrEric Faurot
2017-02-25Add missing includes to avoid implicit function declarations.Jonathan Gray
2017-01-24fix make clean and warningsOtto Moerbeek
2017-01-24make sure realloc preserves dataOtto Moerbeek
2017-01-24use ${.OBJDIR}Otto Moerbeek
2017-01-23hook malloc_general to the testsOtto Moerbeek
2017-01-23test malloc/realloc/free with some flag combo'sOtto Moerbeek
2016-09-05Enable mbrtowc(3) and wcrtomb(3) tests now that mbsinit(3) works.Ingo Schwarze
Related to locale/multibyte_citrus.c rev. 1.7.
2016-09-04test wcrtomb(3)Ingo Schwarze
2016-09-03test mbrtowc(3) in conjunction with mbsinit(3)Ingo Schwarze
2016-08-27Pull in <stdio.h> for NULLPhilip Guenther
ok deraadt@
2016-07-13Fix usage() output and getopt sortingPhilip Guenther
2016-05-29Nuke sigret.cBob Beck
ok deraadt@ kettenis@
2016-05-29We don't have sigreturn anymoreBob Beck
2016-05-26tests for the two segfaults in backref() that were just fixedIngo Schwarze
2016-05-26Fix an oversight that caused the test program to segfault:Ingo Schwarze
Don't try to calculate strlen(NULL).
2016-05-26systematically test all combinations of REG_STARTEND, REG_NEWLINE,Ingo Schwarze
and REG_NOTBOL with line and word anchors
2016-05-26support for testing REG_STARTEND together with REG_NOTBOLIngo Schwarze
2016-02-26Add a test for negated POSIX characer classes.Todd C. Miller
2015-11-08Make sure we use a sigjmp_buf in the sigsetjmp() part of the test.Miod Vallat