summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread
AgeCommit message (Collapse)Author
2016-09-21set BIOCIMMEDIATE, makes the test work for lo0, which does more bufferingOtto Moerbeek
than regular interfaces
2016-09-20switch master & slave; prompted by bluhm@Otto Moerbeek
2016-09-20don't depend on /dev/tty, in bluhm's framework there is no such thingOtto Moerbeek
use openpty(3) instead
2016-09-01Tighten up the siginfo checkPhilip Guenther
2016-09-01delete wrong cvs $ tagsTheo de Raadt
2016-08-09When interrupted, connect() should leave the socket connecting in thePhilip Guenther
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+freePhilip Guenther
2016-05-10Test that various calls can be interrupted in a non-threaded process,Philip Guenther
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])Kenneth R Westerback
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.Kenneth R Westerback
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.Jeremie Courreges-Anglas
2015-11-19hint: compile before commitTheo de Raadt
2015-11-04replace setbuf with setvbuf, from Frederic NowakTed Unangst
2015-09-14init a variable to avoid spurious failurePhilip Guenther
2015-09-14Check pselect, poll, and ppoll tooPhilip Guenther
2015-09-14Add regress for cancellation of wait/waitpid/wait3/wait4Philip Guenther
2014-11-16Delete a test which required behavior not defined by the specPhilip Guenther
(behavior of sigwait() when signal not blocked in all threads)
2014-08-10Only need <stdint.h> and not all of <inttypes.h> herePhilip Guenther
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-03Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.Miod Vallat
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-01-22There can be resolution-worth of slop in two places, so accept thatPhilip Guenther
2013-12-26spacingMark Kettenis
2013-12-22Use a bigger timeout, otherwise this test fails on some (not really) slowerMark Kettenis
hardware.
2013-12-21Use timespec and CLOCK_MONOTONIC for a timing testPhilip Guenther
2013-10-29use lld format string and a cast for time_tJonathan Gray
ok guenther@
2013-10-06Add a test to verify that disabling cancelation defers it until reenabled.Philip Guenther
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_FULLMark Kettenis
variable is set.
2013-06-21Add earlysig test to check whether the pthread fork() wrapperPhilip Guenther
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 failPhilip Guenther
2012-11-06temporarily fix the static tests in testall by using NOPIE_LDFLAGS.Federico G. Schwindt
2012-08-22correct check.Federico G. Schwindt
2012-08-19document some more disabled tests.Federico G. Schwindt
2012-08-19Switch to -lpthread.Federico G. Schwindt
2012-08-04Add a test for caching of stacks with the default attributesPhilip Guenthe
2012-07-11Now that socket timeouts don't return early, fix the regress to matchPhilip Guenthe
2012-07-08Enhance the blocking test and add a test for closing while half-openPhilip Guenthe
2012-05-03Add pthread spinlock support.Paul Irofti
Implementation, documentation and naive regression tests for: - pthread_spin_init() - pthread_spin_destroy() - pthread_spin_lock() - pthread_spin_trylock() - pthread_spin_unlock() Implementation okay guenther@, documentation okay jmc@.
2012-04-13Remove suspend_np1 test from regressKurt Miller
2012-04-13Remove suspend_np1 from regress build.Kurt Miller
2012-04-13Make it easier to compile regress tests on other OSesPhilip Guenthe
2012-04-11Add a simple barrier regression test.Paul Irofti
2012-03-24Another tiny test casePhilip Guenthe
2012-03-19Add blocked_fifo.Owain Ainsworth
2012-03-19Add a (failing) test for a deadlock with fifos and threads.Owain Ainsworth
The ``sleep until we have a writer'' behaviour of an open() on a fifo does so with the file descriptor table locked, so if we are waiting for another thread to be our writer we will hang forever. Found this using zotero and firefox. ok fgsch@
2012-03-07another questionable hang.Federico G. Schwindt
2012-03-03Add tests for sem_timedwait()Philip Guenthe
2012-03-03Verify that sem_wait() doesn't return zero without decrementing thePhilip Guenthe
semaphore when a signal is received. It should either resume waiting or return EINTR, preferrably the former.
2012-03-03While we guarantee that a zero-filled sem_t variable will triggerPhilip Guenthe
EINVAL errors, a sem_t on the stack may have garbage, so make the tests portable by moving the sem_t from function to file scope. problem found by miod@
2012-02-27test based on python's dubious test_3_join_in_forked_from_thread test.Federico G. Schwindt