Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_wait4.cpython-311.opt-1.pyc |
�
�Ke� � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZ ej s ej
d� � � ej ed� � G d� de� � Zd � Z
ed
k r ej � � dS dS )z/This test checks for correct wait4() behavior.
� N)�ForkWait)�supportzrequires working os.fork()�wait4c � � e Zd Zd� ZdS )� Wait4Testc �
� t j }t j � d� � rd}t j � � t j z }t j � � |k rKt j ||� � \ }}}||k rn+t j
d� � t j � � |k �K| � ||� � | � t j |� � |� � | �
|� � d S )N�aixr g�������?)�os�WNOHANG�sys�platform�
startswith�time� monotonicr �
SHORT_TIMEOUTr �sleep�assertEqual�waitstatus_to_exitcode�
assertTrue)�self�cpid�exitcode�option�deadline�spid�status�rusages �9/usr/local/apps/python3/lib/python3.11/test/test_wait4.py� wait_implzWait4Test.wait_impl s� � �����<�"�"�5�)�)� � �F��>�#�#�g�&;�;���n���(�*�*� $&�8�D�&�#9�#9� �D�&�&��t�|�|���J�s�O�O�O�
�n���(�*�*�
����t�$�$�$�����2�6�:�:�H�E�E�E���������� N)�__name__�
__module__�__qualname__r � r r r r s# � � � � � � � � � � r r c �, � t j � � d S )N)r �
reap_childrenr$ r r �tearDownModuler'