Current File : //opt/imh-python/lib/python2.7/test/test_threadsignals.pyc
�
��Wc@sdZddlZddlZddlZddlZddlmZmZmZed�Z	ej
d dks�ej
dkr�ejd	ej
�nej�Z
e	j�Zd
�Zd�Zd�Zd
ejfd��YZd�Zedkre�ndS(s6PyUnit testing that threads honor our signal semanticsi����N(trun_unittestt
import_moduletreap_threadstthreaditwintos2triscossCan't test signal on %scCsLtjtj|�}tjtj|�}tjtj|�}|||fS(N(tsignaltSIGUSR1tSIGUSR2tSIGALRM(tfor_usr1tfor_usr2tfor_alrmtusr1tusr2talrm((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pytregisterSignalsscCs,t|dcd7<tj�t|d<dS(Nttrippedit
tripped_by(tsignal_blackboardRt	get_ident(tsigtframe((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pythandle_signalsscCs4tjttj�tjttj�tj�dS(N(tostkilltprocess_pidRRR	t
signalled_alltrelease(((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pytsend_signalsst
ThreadSignalscBs&eZdZed��Zd�ZRS(s�Test signal handling semantics of threads.
       We spawn a thread, have the thread send two signals, and
       wait for it to finish. Check that we got both signals
       and that they were run by the main thread.
    cCs�tj�|j�tj�ttjddksLttjddkrstjd�tj�tjd�n|j	ttjdd�|j	ttjdt
j��|j	ttjdd�|j	ttjdt
j��tj�dS(NRiiR(
RtacquiretspawnSignallingThreadRRRR	talarmtpausetassertEqualRRR(tself((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pyttest_signals*s






cCstjtd�dS(N((Rtstart_new_threadR(R%((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pyR!Cs(t__name__t
__module__t__doc__RR&R!(((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pyR$scCs�iidd6dd6tj6idd6dd6tj6idd6dd6tj6atttt�}ztt�Wdt|�XdS(NiRR(	RRR	R
RRRRR(toldsigs((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pyt	test_mainGst__main__(Rsos2(R*tunittestRRtsysttest.test_supportRRRRtplatformtSkipTesttgetpidRt
allocate_lockRRRRtTestCaseRR,R((((sp/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threadsignals.pyt<module>s""				#