Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a test program for getopt(3) that is adequate for manual testing | schwarze | 2020-03-23 | 4 | -2/+174 |
| | | | | | | | | and a compact test suite for getopt(3) intended automated regression testing, both written from scratch. The suite is intended to provide full coverage, except that it doesn't test manual changes of optind and optreset and except that it so far avoids the situation where we have a known bug. | ||||
* | cstyle in illumos noticed some weird syntax, which this fixes. | dlg | 2020-03-09 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | some errx lines in if statements were terminated with commas, which caused the following statement to be considered part of the error handling. while it is bad style, ingo points out it was also a bug which which caused some tests in the code to be skipped. this reminds me of a haiku that Chris Pascoe (cpascoe@) had behind his desk: Also, that comma Should be a semi-colon. Cherry blossoms fall. this was found by Robert Mustacchi when porting the tests to illumos. ok schwarze@ stsp@ thank you robert. | ||||
* | no need to declare "extern optarg" and "extern optind" | schwarze | 2020-02-14 | 3 | -9/+3 |
| | | | | | | when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert | ||||
* | Add missing new line to printf. Make clean should not require SUDO. | bluhm | 2020-02-02 | 2 | -7/+5 |
| | |||||
* | Enable t_ptrace with an errno change compared to NetBSD. | mpi | 2020-01-30 | 4 | -19/+31 |
| | | | | | | | | Note that the last test triggers a kernel bug related to waitpid(9) and ptraced processes. This is now visible thanks to recent make(1) changes. guenther@ suggests to look at the logic behind `p_orphan' in FreeBSD to fix this bug. | ||||
* | Check fpu functions without setjmp/longjmp before testing the latter. | bluhm | 2020-01-16 | 3 | -13/+71 |
| | | | | | Use exit code 2 for setup failure and 1 for test fail. Unfortunately this regress is still failing. | ||||
* | Make clean should not require SUDO. | bluhm | 2020-01-13 | 1 | -3/+1 |
| | |||||
* | Fix printf compiler warnings in wfp regress. Convert wchar to a | bluhm | 2020-01-13 | 1 | -9/+18 |
| | | | | printable error message when failing. | ||||
* | Link forgotten libc tests to the build. | bluhm | 2020-01-13 | 2 | -6/+10 |
| | |||||
* | Split setjmp-fpu regress into separate tests. Use errx(3) to explain | bluhm | 2020-01-13 | 6 | -32/+69 |
| | | | | potential problems. Regress still failing on amd64. | ||||
* | Sync tests with current NetBSD. Enable t_mkfifo test. | bluhm | 2019-11-22 | 6 | -27/+44 |
| | | | | from Moritz Buhl | ||||
* | Link system call tests to build. | bluhm | 2019-11-19 | 1 | -1/+2 |
| | |||||
* | Import NetBSD system call regression tests. They were written with | bluhm | 2019-11-19 | 49 | -0/+10692 |
| | | | | | | | | ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD. | ||||
* | Set malloc_options in global scope with an initializer. | bluhm | 2019-06-12 | 2 | -10/+8 |
| | | | | recommended by otto@ | ||||
* | Disable junking with malloc options. If set, the test hangs on low | bluhm | 2019-06-11 | 1 | -2/+5 |
| | | | | | memory arm64 machines. found by patrick@; OK otto@ | ||||
* | Move to env var, likelky the possibility to set malloc options from | otto | 2019-06-04 | 2 | -19/+8 |
| | | | | main is going away. | ||||
* | Throw malloc_conceal and freezero into the mix. | otto | 2019-05-23 | 1 | -3/+8 |
| | |||||
* | The call to fseek(fp, -1, SEEK_END) also sets the reported size to | bluhm | 2019-05-13 | 1 | -10/+10 |
| | | | | | | this value. To match the expectation of the test again, move this line before the the code that sets the final position. OK yasuoka@ | ||||
* | Add test fseek(,-1) works properly. | yasuoka | 2019-05-02 | 1 | -3/+8 |
| | |||||
* | I am retiring my old email address; replace it with my OpenBSD one. | millert | 2019-01-25 | 9 | -16/+16 |
| | |||||
* | Add regress test for bugs in stdio/fread.c rev 1.13 and 1.17 | millert | 2018-12-16 | 3 | -2/+160 |
| | |||||
* | add a -R option to set/unset resolver flags.libressl-v2.9.0 | eric | 2018-12-15 | 9 | -20/+101 |
| | | | | use strcasecmp for reading args. | ||||
* | This test does not terminate if malloc conf is preconfigured with | bluhm | 2018-11-29 | 1 | -2/+6 |
| | | | | | J. Clear that option to allow running full regress with paranoid malloc flags. This is the same fix as for malloc_ulimit1. | ||||
* | We're manipulating malloc flags ourselves, start with restting them all. | otto | 2018-11-29 | 1 | -1/+5 |
| | | | | ok bluhm@ | ||||
* | This test does not terminate if malloc conf is preconfigured with | bluhm | 2018-11-28 | 1 | -4/+8 |
| | | | | | | J. Clear that option to allow running full regress with paranoid malloc flags. Also fix whitespace. OK otto@ | ||||
* | Fix three bugs in setlocale(3): | schwarze | 2018-03-29 | 1 | -2/+2 |
| | | | | | | | | | | | 1. setlocale(LC_ALL, "A"); setlocale(LC_CTYPE, "T"); setlocale(LC_ALL, NULL); must return "A/T/A/A/A/A", not "A". Fix this by always initializing the LC_ALL entry of newgl to "" in dupgl(). Reported by Karl Williamson <public at khwilliamson dot com> on bugs@, thanks! 2. Do not leak newgl when strdup(3) fails in setlocale(3). 3. For setlocale(LC_ALL, "C/C/fr_FR.UTF-8/C/C/C"); correctly set _GlobalRuneLocale; i found 2. and 3. while looking at the code. Feedback on a buggy earlier version and OK martijn@. | ||||
* | typo | otto | 2018-01-28 | 1 | -2/+2 |
| | |||||
* | add malloc_threaderr | otto | 2018-01-28 | 1 | -1/+2 |
| | |||||
* | Test for correct error when on thread allocates, and another does a double free | otto | 2018-01-28 | 2 | -0/+71 |
| | |||||
* | Add a regression test for ldexp(3). | visa | 2017-10-15 | 3 | -2/+82 |
| | |||||
* | test locale priorities and overrides | schwarze | 2017-08-16 | 1 | -1/+36 |
| | |||||
* | test isalpha_l(3), tolower_l(3), wctype_l(3), iswctype_l(3), | schwarze | 2017-08-16 | 1 | -4/+149 |
| | | | | | wctrans_l(3), towctrans_l(3), wcscasecmp_l(3), wcsncasecmp_l(3), and strerror_l(3) | ||||
* | test nl_langinfo_l(3), iswalpha_l(3), towupper_l(3) | schwarze | 2017-08-16 | 2 | -3/+44 |
| | |||||
* | refactor in preparation for testing more functions; no functional change | schwarze | 2017-08-15 | 2 | -114/+117 |
| | |||||
* | first draft of tests for newlocale(3), duplocale(3), uselocale(3) | schwarze | 2017-08-10 | 2 | -0/+268 |
| | |||||
* | Sort subdir, run getaddrinfo test, remove vax case. | bluhm | 2017-07-27 | 1 | -13/+21 |
| | |||||
* | Sort expected getaddrinfo output in inet4 inet6 order, then the | bluhm | 2017-07-27 | 2 | -46/+37 |
| | | | | test passes. | ||||
* | Fix all clang warnings in libc regress and cleanup some make files. | bluhm | 2017-07-27 | 18 | -75/+67 |
| | |||||
* | Mark the invalid memory location as volatile, otherwise clang would | bluhm | 2017-07-27 | 1 | -2/+2 |
| | | | | | optimize the access to it with an illegal instruction. But the tests needs a SIGSEGV, it would fail with SIGILL. | ||||
* | Add a test that covers the recently fixed "0x" prefix handling issue. | jsing | 2017-07-15 | 1 | -1/+2 |
| | |||||
* | Run malloc0test with all possible malloc options. | bluhm | 2017-07-08 | 1 | -1/+7 |
| | |||||
* | Also test arrays of double and long long. | millert | 2017-05-27 | 1 | -142/+421 |
| | |||||
* | Add timing and test name options. | millert | 2017-05-22 | 1 | -12/+83 |
| | |||||
* | Instead of embedding pre-generated tables from McIlroy's "A Killer | millert | 2017-05-22 | 3 | -1538/+315 |
| | | | | | Adversary for Quicksort", just include the code to generate them. Also allow the number of elements to be specified on the command line. | ||||
* | correct a return value test | jsg | 2017-05-21 | 1 | -1/+1 |
| | | | | ok millert@ | ||||
* | Add input targeted at the Bentley and McIrlroy quicksort generated | millert | 2017-05-19 | 1 | -6/+1389 |
| | | | | | by McIlroy's "A Killer Adversary for Quicksort". This results in quadratic behavior and the test aborts before completion. | ||||
* | use mergesort instead of heapsort when comparing results | millert | 2017-05-18 | 1 | -9/+17 |
| | |||||
* | Avoid running the "killer" tests multiple times with the same | millert | 2017-05-17 | 1 | -10/+19 |
| | | | | parameters. | ||||
* | Add "median of three" killer, as seen in "Introspective Sorting and | millert | 2017-05-17 | 1 | -18/+44 |
| | | | | Selection Algorithms" by David R Musser. | ||||
* | Approximate nlgn instead of using libm. The same approximation may | millert | 2017-05-17 | 2 | -10/+8 |
| | | | | be used in qsort.c in a later commit. |