Current File : //opt/imh-python/lib/python2.7/test/test_fork1.pyc
�
��Wc@s�dZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZed�Z
eed�defd��YZd	�Zed
kr�e�ndS(s.This test checks for correct fork() behavior.
i����N(tForkWait(trun_unittestt
reap_childrent
get_attributet
import_modulet	threadingtforktForkTestcBseZd�Zd�ZRS(cCs�xLtd�D]>}tj|tj�\}}||kr>Pntjd�q
W|j||�|j|dd|d@|d?f�dS(Ni
g�?iscause = %d, exit = %di�i(trangetostwaitpidtWNOHANGttimetsleeptassertEqual(tselftcpidtitspidtstatus((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pyt	wait_implscs�tj��d�d�d�����fd�}tjd|�}|j��j�tj�}zY|s�t��}|�kr�tjd�q�tjd�n|j	�|j
|�Wdytj|tj
�Wntk
r�nXXdS(Nsfake test moduletpartialtcompletecsItj��tj�<�j�tjd��tj�<tj�dS(Ng{�G�z�?(timptacquire_locktsystmodulestsetRR
trelease_lock((tcomplete_moduletfake_module_nametimport_startedtpartial_module(sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pytimporter$s




ttargetii(RtEventtThreadtstarttwaitR	Rt
__import__t_exittjoinRtkilltsignaltSIGKILLtOSError(RR!tttpidtm((RRRR sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pyttest_import_lock_forks*



(t__name__t
__module__RR1(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pyRs	cCstt�t�dS(N(RRR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pyt	test_mainBs
t__main__(t__doc__RR	R+RRttest.fork_waitRttest.test_supportRRRRRRR4R2(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fork1.pyt<module>s"
0