summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread
AgeCommit message (Collapse)Author
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
2012-02-26update error message. inetd has not been used since rev 1.3.Federico G. Schwindt
spotted by miod@
2012-02-26similar change to the setsockopt1.c one: use the resolution of the monotonicFederico G. Schwindt
clock from clock_getres(). while here use a different port when binding.
2012-02-26Let this compile with gcc 2.Miod Vallat
2012-02-23Check that PTHREAD_MUTEX_NORMAL mutexes will self-deadlock and thatPhilip Guenthe
pthread_mutex_timedlock() will block and then timeout on self-deadlock
2012-02-22similar change to the setsockopt1.c one: use the resolution of the monotonicFederico G. Schwindt
clock from clock_getres(). while here use a different port when binding.
2012-02-21Add pthread_suspend_np regress test. okay guenther@Kurt Miller
2012-02-20Switch the time measuring to be in timespecs, and then check thePhilip Guenthe
difference against the resolution of the monotonic clock from clock_getres() discussed with fgsch@
2012-02-20- remove invalid potions of blocked_* regress testsKurt Miller
- reenable blocked_* regress tests. while this behaivor is not specifited by posix, deadlocking is not a reasonable behaivor and some ports depend on this to work.
2012-02-20Disable the dup2_race test, as it requires a buggy behavior that uthreadsPhilip Guenthe
happened to exhibit
2012-02-20Round-robin behavior isn't guaranteed by SCHED_OTHER and the kernelPhilip Guenthe
doesn't have SCHED_FIFO or SCHED_RR support, so use sleep(1) to 'ensure' the second thread gets the lock when expected
2012-02-20Enable the errno test; add a quick rwlocks testPhilip Guenthe
2012-02-20End the output with a newlinePhilip Guenthe
2012-02-20This test needs a large nprocs ulimit, so just have it raise its ownPhilip Guenthe
2012-02-20Need to block the signals in all thread for the kill(getpid(), SIGFOO)Philip Guenthe
tests to work. Disable the "sigwait for blocked but ignored signal" test as it depended on undefined behavior (POSIX quoted included for reference) and rthreads (currently) handles it the other way.
2012-02-20SIGSTOP, SIGKILL, and (for threaded programs) SIGTHR are unblockablePhilip Guenthe
2012-02-20pthread_sigmask() was fixed to return the errno value on failurePhilip Guenthe