| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/test/__pycache__/ |
Upload File : |
o
�9j9 � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z e
ed�s,e�d��e
ed�s6e�d��G d d
� d
e�Zdd� Z
ed
krLe�� dS dS )z/This test checks for correct wait3() behavior.
� N)�ForkWait)�support�forkzos.fork not defined�wait3zos.wait3 not definedc @ s e Zd Zdd� Zdd� ZdS )� Wait3Testc C sx t �� tj }t �� |kr&t�tj�\}}}||krnt �d� t �� |ks
| �||� | �t� |�|� | �
|� d S )Ng�������?)�time� monotonicr �
SHORT_TIMEOUT�osr �WNOHANG�sleep�assertEqual�waitstatus_to_exitcode�
assertTrue)�self�cpid�exitcode�deadline�spid�status�rusage� r �&/usr/lib/python3.10/test/test_wait3.py� wait_impl s
�zWait3Test.wait_implc C s� t jddg}tj|tjd�}z)t�tj�\}}}| �d|� | �d|� | �dt |�� W |j
�� |�� d S |j
�� |�� w )Nz-czimport sys; sys.stdin.read())�stdinr )
�sys�
executable�
subprocess�Popen�PIPEr
r r r
�sumr �close�wait)r �args�proc�pidr r r r r �test_wait3_rusage_initialized$ s
�
z'Wait3Test.test_wait3_rusage_initializedN)�__name__�
__module__�__qualname__r r&