summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread
AgeCommit message (Collapse)AuthorFilesLines
2020-04-06Update my email address.pirofti2-4/+4
2019-12-20Fix the sem_timedwait(3) test.cheloha1-9/+25
The recent clock_getres(2) changes made it so that clock_getres(2) returns the granularity of the active timecounter. This is usually much finer than that of hardclock(9), so we can no longer use clock_getres(2) to fudge our upper timeout return bound. The test is failing because it thinks our sem_timedwait(3) call is returning with too much latency. We can still get the hardclock(9) granularity via the kern.clockrate sysctl(2), though, so just use that to fudge the upper bound. While here, we ought to be checking that we return after the requested absolute timeout, not that we were asleep for a particular interval. Breakage reported by mpi@. ok mpi@
2019-05-16enable malloc_duel; "tests want to run" bluhm@otto1-3/+3
2019-05-15Turn the 2 thread duel into a 11 thread melee.otto1-4/+8
2019-05-14Remove the REGRESS_MAXTIME feature from regress framework. Thebluhm3-9/+3
timeout based on CPU seconds is pretty useless, most hanging tests sleep and do not spin. The timeout could not be distinguished from failure. Only 3 tests used it. OK anton@ schwarze@ cheloha@ otto@
2019-03-04link pthread_rwlock2 testsemarie1-2/+2
2019-03-04add a new pthread_rwlock test based on concurrent rw/rd access on a buffer.semarie2-0/+116
discussed with visa@
2018-05-21In general I like verbose tests as output makes debugging easier.bluhm2-33/+30
But this one just fills the log file by writing characters from the running threads. Pipe stdout to wc to show performance. Run test multiple times with various number of threads and print cpu time. Replace atoi(3) with strtonum(3). Fix white spaces.
2018-04-27Fix sem_timedwait regress test. Needs SA_RESTART to block now.pirofti1-2/+2
Hug and OK guenther@
2018-04-27pthread_join() must not return EINTRguenther1-3/+25
Simplify sem_trywait() ok pirofti@ mpi@
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandguenther1-6/+6
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2017-11-16Disable the pthread_once subtest until the problem with samba portbluhm1-1/+8
is resolved and libpthread can be fixed. discussed with guenther@
2017-10-16Add regress test for cancellation of pthread_once()'s init_routineguenther3-2/+55
From Scott Cheloha (scottcheloha (at) gmail.com)
2017-09-07Try both libpthread and RTLD_DEFAULT when looking up functionsguenther1-2/+3
so the test can find everything after the libpthread->libc move
2017-07-29Remove unused function and variable to shut up warning. Put backbluhm1-11/+2
a status print that was lost in previous.
2017-07-29repair regress for more aggressive post fork checking in library.tedu1-18/+1
we should not be checking that things explicitly forbidden work. prompted by bluhm
2017-07-07Remove all references to "make depend" from regress.bluhm1-2/+2
2017-05-30Fix a race by always modifying the 'counter' variable while holding thempi1-3/+3
mutex. ok tedu@
2017-05-27Do not connect to cvs.openbsd.org in regress. Run on loopback tobluhm1-5/+12
make the test pass without internet access. OK mpi@
2017-05-27Go to sleep to let our contending thread win a race.mpi1-1/+2
Because we cannot assume that the contending thread will grab it between our unlock/lock. ok kettenis@
2016-09-21set BIOCIMMEDIATE, makes the test work for lo0, which does more bufferingotto1-1/+4
than regular interfaces
2016-09-20switch master & slave; prompted by bluhm@otto2-4/+4
2016-09-20don't depend on /dev/tty, in bluhm's framework there is no such thingotto4-10/+12
use openpty(3) instead
2016-09-01Tighten up the siginfo checkguenther1-3/+3
2016-09-01delete wrong cvs $ tagsderaadt1-2/+1
2016-08-09When interrupted, connect() should leave the socket connecting in theguenther1-2/+5
background, similar to a non-blocking socket. Return EALREADY whenever already connecting, not just for non-blocking sockets. Fix from {Free,Net}BSD Prompted by a report from Michael Reed (m.reed (at) mykolab.com) ok millert@
2016-05-10In a signal handler use snprintf()+local buffer instead of asprintf+freeguenther1-6/+6
2016-05-10Test that various calls can be interrupted in a non-threaded process,guenther3-3/+707
then dlopen() libpthread and do that again in a second thread, and then verify that they're all correctly acting as cancellation points.
2016-03-20Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])krw1-14/+14
idioms. Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0) where it is obvious further investigation will not yield and even better way. Obviousness evaluation and ok guenther@
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.krw1-2/+2
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
2016-01-27Properly initialize sin_family.jca3-3/+6
2015-11-19hint: compile before commitderaadt1-3/+3
2015-11-04replace setbuf with setvbuf, from Frederic Nowaktedu3-9/+9
2015-09-14init a variable to avoid spurious failureguenther1-2/+2
2015-09-14Check pselect, poll, and ppoll tooguenther1-4/+77
2015-09-14Add regress for cancellation of wait/waitpid/wait3/wait4guenther3-2/+116
2014-11-16Delete a test which required behavior not defined by the specguenther1-15/+2
(behavior of sigwait() when signal not blocked in all threads)
2014-08-10Only need <stdint.h> and not all of <inttypes.h> hereguenther1-2/+2
2014-07-16zap trailing newlines; "go for it" deraadtokan2-4/+2
2014-07-03Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.miod1-2/+2
2014-05-20Use errc/warnc to simplify code.guenther2-5/+5
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-01-22There can be resolution-worth of slop in two places, so accept thatguenther1-1/+2
2013-12-26spacingkettenis1-2/+2
2013-12-22Use a bigger timeout, otherwise this test fails on some (not really) slowerkettenis1-1/+3
hardware.
2013-12-21Use timespec and CLOCK_MONOTONIC for a timing testguenther1-10/+15
2013-10-29use lld format string and a cast for time_tjsg1-3/+3
ok guenther@
2013-10-06Add a test to verify that disabling cancelation defers it until reenabled.guenther1-2/+46
Add missing pthread_cleanup_pop() calls (they're required to be matched).
2013-08-01Some tests are currently failing. Only run those if the REGRESS_FULLkettenis1-11/+16
variable is set.
2013-06-21Add earlysig test to check whether the pthread fork() wrapperguenther3-2/+95
has a critical section where getting a signal causes a hang. Based on otto@ earlysig kernel regress; suggested by miod@
2013-03-25Disable the blocked_{close,dup2,fifo} tests, as we know they failguenther1-3/+8