summaryrefslogtreecommitdiff
path: root/regress/lib/libc
AgeCommit message (Collapse)Author
2022-05-28*** empty log message ***mbuhl
2022-05-24Recent changes to truncate(2) swapped the ordering of some validationsAnton Lindqvist
causing EACCESS as opposed of ESDIR to be returned while trying to truncate a directory as a user lacking write permissions to the same directory. As this behavior is reasonable, change the truncate directory from /etc/ to /tmp which makes the test pass both as root and non-root.
2022-04-03Initialize the mutex before making us of it from many threads. PreventsAnton Lindqvist
a race in which one thread is currently initializing the mutex which is not an atomic operation whereas another thread tries to use it too early. With and ok schwarze@
2022-03-30Remove double slash in path to test program.Anton Lindqvist
2022-02-10If running with ASAN, mark test_with{,out}_bzero() with theTheo Buehler
no_sanitize_address attribute. ASAN doesn't seem to be able to understand these lowlevel gymnastics with sigaltstack() and segfaults in __intercept_memem(). This allows LibreSSL and other portable projects that use this test run tests with ASAN enabled. Issue reported and workaround suggested by Ilya Shipitsin Paraphrasing millert: it's a little ugly but it's only a regress.
2022-02-09silence "function declaration isn't a prototype" warning by changingTheo Buehler
int foo() to int foo(void)
2022-01-20remove unused variable from all copies of _asr_strdname()Christian Weisgerber
... including those inlined into print_dname(). This also fixes -Wunused-but-set-variable warnings warnings in smtpd and smtpctl. The code was imported with asr and then copied around. ok deraadt@ guenther@
2022-01-09Increase the max size of allocations, in prep for a large cache implementation.Otto Moerbeek
2022-01-06t_syscall was a test for the gcc 1.x off_t syscall padding,Philip Guenther
which was an implementation detail and has been deleted, so delete the test
2021-12-13remove a couple hundred sys/param.h includes in userland code, andTheo de Raadt
also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2021-09-28Remove recent changes used to unblock the signal undergoing testing, I solved itAnton Lindqvist
by changing my regress environment instead. This reduces the delta to the NetBSD upstream.
2021-09-27Mark "failures" volatile to avoid a problem with sigsetjmp/siglongjmp.Todd C. Miller
This makes the test pass on sparc64 where the compiler may otherwise store the variable in the strlcpy/strlcat function's delay slot. OK kettenis@
2021-09-27These tests pass in a few seconds. Remove REGRESS_SLOW_TARGETS.Alexander Bluhm
2021-09-27Make t_gettimeofday pass on sparc64.mbuhl
OK bluhm@
2021-09-19At least t_fork and t_vfork tests need coredumps enabled to succeed.Claudio Jeker
Add ulimit -c unlimited before running the tests like it is done in other places in regress. OK bluhm@
2021-09-09Ensure that the kill signal undergoing testing is not ignored.Anton Lindqvist
ok bluhm@
2021-09-04Disable tests that don't work in bluhms regress framework.mbuhl
2021-09-02Enable vfork syscall test. Disable SIGSTOP test as it is masked untilmbuhl
exec/exit with vfork. OK bluhm@
2021-09-02Import more NetBSD system call regression tests.mbuhl
OK bluhm@
2021-09-02delete %n using test cases, which now intentionally faultTheo de Raadt
spotted by anton
2021-09-01remove manual fiddling with MALLOC_OPTIONS from libc regress testsJasper Lievisse Adriaanse
these options should be set globally (sysctl) when running regress as opposed to having individual tests set it, barring a few specific exceptions. ok bluhm@
2021-08-31enter uuid/Jasper Lievisse Adriaanse
2021-08-31add initial tests for uuid_from_string, uuid_to_string, uuid_create_nilJasper Lievisse Adriaanse
prompted by the bug krw@ fixed yesterday in uuid_from_string()
2021-07-29Ensure that the kill signal undergoing testing is not ignored.anton
ok bluhm@
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2021-07-24Add basic regression tests for strchr() and strrchr().Visa Hankala
2021-07-03fix a bug that resulted in incomplete testing:Ingo Schwarze
end statements with ';' because ',' isn't enough
2021-06-17Like ARM, RISC-V does not implement floating point exceptions.Mark Kettenis
2021-06-09Enable libexecinfo regress.mortimer
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2021-05-31Since our unix receive queue got longer, the test run-t_sendrecvAlexander Bluhm
did not terminate anymore on some machines. The test counts 100 send errors before it finishes. NetBSD has added sched_yield() in the receiver loop to trigger the errors on the sender side. Although not perfect, it works for me. Get current t_sendrecv.c from NetBSD.
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2021-04-19The powerpc64 ELFv2 ABI explicitly states that exception enable bitsMark Kettenis
and rounding control bits are not restored by longjmp(3). So expect the some failures on that platform. ok bluhm@
2021-04-02Two cases of BRE involving counts and backrefs that go wrong andOtto Moerbeek
similar that have no isssues. Reported by Michael Paoli. Failing cases commented out for now.
2021-03-27Handle dynamic definition of SIGSTKSZ as of glibc 2.34 on Linux.Brent Cook
ok bluhm@, inoguchi@, tb@, deraadt@
2021-02-12A few more flag combo's to testOtto Moerbeek
2020-12-31Remove unused categories in re_guts; they are written to but never read.Todd C. Miller
From miod@, OK tb@
2020-12-28Fix an off-by-one error in the marking of the O_CH operator followingTodd C. Miller
an OOR2 operator. Also includes a regress test for the issue. From FreeBSD via miod@
2020-12-17Remove echo headlines.Alexander Bluhm
2020-12-06Enable t_mmap-1 test. It is skipped on NetBSD, but works for us.Alexander Bluhm
2020-11-11Run the atf cleanup block after each test. This makes more testsAlexander Bluhm
pass when run as non root.
2020-11-10Declare prototype of __syscall locally. Fixes t_syscall test.Alexander Bluhm
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2020-11-09Sync libc syscall tests with changes in upstream NetBSD. Use #ifdefAlexander Bluhm
to document differences to NetBSD behaviour, this helps to track upstream. Mark currently failing test as expected failures. So test programs get compiled and executed, but it shows that further investigation is necceassry.
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.
2020-10-21On machines with a userland timecounter we bypass the gettimeofday(2)Mark Kettenis
syscall. So whenever we pass a bad address we get a SIGSEGV instead of EFAULT. POSIX explicitly allows this behaviour. So adjust the test to deal with this case. ok deraadt@, millert@, guenther@
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
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.