History log of /src/tests/lib/libpthread/t_sem.c |
Revision | | Date | Author | Comments |
1.9 |
| 16-Jan-2017 |
christos | PR/51889: Ngie Cooper: add sys/time.h
|
1.8 |
| 04-Nov-2014 |
justin | branches: 1.8.2; 1.8.4; PR misc/49356 remove unnecessary references to atf-c/config.h
The function included via this header is not used and is removed in later versions of atf, so let us avoid it.
|
1.7 |
| 09-Mar-2012 |
joerg | It is perfectly valid for sem_wait to be interrupted, so loop on EINTR.
|
1.6 |
| 07-Mar-2012 |
joerg | Remove libpthread's semaphore implementation and always use the kernel one. The implementation doesn't provide an async-safe sem_post and can't without a lot of work on the pthread primitives.
Remove bogus time out requirement in test case, it should have been a "known failure" if anything.
|
1.5 |
| 03-Nov-2010 |
christos | branches: 1.5.6; add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing how many bugs this found :-)
|
1.4 |
| 21-Jul-2010 |
jmmv | before_start_one_thread is not racy only in amd64; my confusion. Mark it as an xfail everywhere and, while doing so, make the test longer so that we trigger the failure all the time -- of course, being a race this may still happen but the chances should be pretty low.
|
1.3 |
| 19-Jul-2010 |
jmmv | Split the before_start test in two: one that does not use threads and one that does. The former works all the time but the latter gets consistently stuck on amd64. Mark the latter as an expected timeout (should be a "race condition" test, but atf does not have such a thing yet[1]).
This clears the test failures, at least, under anita running NetBSD/i386.
From pooka@: this could well be because calling sem_post(3) from a signal handler can't possibly do the right thing with the pthread implementation. However, according to signal(7), sem_post(3) is signal-async safe...
While here, program alarms using a timeout shorter than 1 second to speed up the execution of the tests.
1: Good thing is I finally understand what a "race condition" test looks like, I believe.
|
1.2 |
| 18-Jul-2010 |
pooka | Reduce sleep time for practically the same effect. Until atf can do parallel test execution, tests which spend 99.9999% of their execution sleeping are not nice.
|
1.1 |
| 16-Jul-2010 |
jmmv | Convert the libpthread tests to atf. Initial work from the GSoC 2008 project by Lukasz Strzygowski.
I think that this, together with the previous conversion of librt, obsoletes the tests in the semaphore/ directory. Will investigate later.
|
1.5.6.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.8.4.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.8.2.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|