Module Name: src Committed By: jmmv Date: Mon Jul 19 10:31:46 UTC 2010
Modified Files: src/tests/lib/libpthread: t_sem.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libpthread/t_sem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.