[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

Stefan Krah report at bugs.python.org
Fri Apr 23 18:15:16 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

The buildbots are generally happy with the change. However, on OpenBSD
test_itimer_prof fails seemingly unrelated to machine load.

I'm not so familiar with the signal module, but how can the signal
handlers in the tests be guaranteed to work? For example, if you
set a variable inside a signal handler (self.hndl_called=True), it
should be a sig_atomic_t. If you call a function, it should be listed
as signal-safe ( 
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html ),
but setitimer is not.


I say this because there might be further assumptions in the tests
that could generate hard to track down failures in the future.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8424>
_______________________________________


More information about the Python-bugs-list mailing list