Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/test/__pycache__/test_wait3.cpython-311.opt-1.pyc

�

SԚg���dZddlZddlZddlZddlZddlmZddlmZej	sej
d���eed��sej
d���Gd�d	e��Zd
�Z
edkrej��dSdS)z/This test checks for correct wait3() behavior.
�N)�ForkWait)�supportzrequires working os.fork()�wait3zos.wait3 not definedc��eZdZd�Zd�ZdS)�	Wait3Testc�F�tjtjd���D],}tjtj��\}}}||krn�-|�||��|�tj|��|��|�|��dS)NF)�error)	r�sleeping_retry�
SHORT_TIMEOUT�osr�WNOHANG�assertEqual�waitstatus_to_exitcode�
assertTrue)�self�cpid�exitcode�_�spid�status�rusages       �,/usr/local/lib/python3.11/test/test_wait3.py�	wait_implzWait3Test.wait_impls����'��(=�U�K�K�K�	�	�A�$&�8�B�J�#7�#7� �D�&�&��t�|�|����	
����t�$�$�$�����2�6�:�:�H�E�E�E����������c��tjddg}tj|tj���}	tjt
j��\}}}|�d|��|�d|��|�dt|����|j
���|���dS#|j
���|���wxYw)Nz-czimport sys; sys.stdin.read())�stdinr)
�sys�
executable�
subprocess�Popen�PIPErrr
r�sumr�close�wait)r�args�proc�pidrrs      r�test_wait3_rusage_initializedz'Wait3Test.test_wait3_rusage_initialized!s������&D�E�����J�O�<�<�<��	�"$�(�2�:�"6�"6��C������Q��$�$�$����Q��'�'�'����Q��F���,�,�,��J�������I�I�K�K�K�K�K��
�J�������I�I�K�K�K�K���s�A1C�/DN)�__name__�
__module__�__qualname__rr(�rrrrs2������
 �
 �
 �
�
�
�
�
rrc�,�tj��dS)N)r�
reap_childrenr,rr�tearDownModuler/1s��������r�__main__)�__doc__rrr�unittest�test.fork_waitr�testr�has_fork_support�SkipTest�hasattrrr/r)�mainr,rr�<module>r9s����
�	�	�	�����
�
�
�
�����#�#�#�#�#�#���������:�
�(�
�8�
9�
9�9��w�r�7���4�
�(�
�2�
3�
3�3����������@����z����H�M�O�O�O�O�O��r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists