[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2
report at bugs.python.org
Sat Nov 19 18:14:59 CET 2011
Charles-François Natali <neologix at free.fr> added the comment:
> Testing os.sysconf("SC_SEM_NSEMS_MAX") value is maybe better than
> creating 30 semaphores.
Yeah, I thought about that, but the problem is that it doesn't take into account the number of semaphores already allocated: so, for example, if sysconf() returns 50 but you already have 30 allocated semaphores, the test will fail with ENOFILE.
But if we consider that most buildbots don't have many semaphores allocated (and in particular no dangling semaphores), and that FreeBSD 8 has a limit substentially higher than 30 (ideally above 256), then I guess we could use this.
Added file: http://bugs.python.org/file23730/test_multi_sem-1.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list