ó
ŒwÛjc           @   sh  d  d l  Z  d  d l m Z d  d l m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l Z d  d l Z e j d k rÌ e  j d e j ƒ ‚ n  d e f d „  ƒ  YZ d	 „  Z d
 „  Z e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z d e  j f d „  ƒ  YZ e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z e  j e j d k d ƒ d e  j f d „  ƒ  Yƒ Z d „  Z e  d k rde ƒ  n  d S(   iÿÿÿÿN(   t   test_support(   t   closingt   os2t   riscoss   Can't test signal on %st   HandlerBCalledc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR      s   c           C   s   t  j d ƒ d S(   sñ   Use os._exit(0) to exit the current subprocess.

    Otherwise, the test catches the SystemExit and continues executing
    in parallel with the original test, so you wind up with an
    exponential number of tests running concurrently.
    i    N(   t   ost   _exit(    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   exit_subprocess   s    c         O   sD   y |  | | Ž  SWn, t  k
 r? } | j t j k r; ‚  n  d  SXd  S(   N(   t   EnvironmentErrort   errnot   EINTRt   None(   t   __funct   argst   kwargst   e(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   ignoring_eintr   s    t   win32s   Not valid on Windowst   InterProcessSignalTestsc           B   st   e  Z d  Z d „  Z d „  Z d d „ Z d „  Z d „  Z d „  Z	 d „  Z
 e j e j d k d	 ƒ d
 „  ƒ Z RS(   i   c         C   s   t  j ƒ  |  _ t  j ƒ  d  S(   N(   t   gct	   isenabledt   using_gct   disable(   t   self(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   setUp+   s    c         C   s   |  j  r t j ƒ  n  d  S(   N(   R   R   t   enable(   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   tearDown/   s    	c         C   s   d j  t j | d | ƒƒ S(   Nt    t   limit(   t   joint	   tracebackt   format_stack(   R   t   frameR   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   format_frame3   s    c         C   s7   t  |  _ t j r3 d | |  j | d d ƒf GHn  d  S(   Ns&   handlerA invoked from signal %s at:
%sR   i   (   t   Truet   a_calledR    t   verboseR#   (   R   t   signumR"   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   handlerA6   s    		c         C   sO   t  |  _ t j r3 d | |  j | d d ƒf GHn  t | |  j | ƒ ƒ ‚ d  S(   Ns&   handlerB invoked from signal %s at:
%sR   i   (   R$   t   b_calledR    R&   R#   R   (   R   R'   R"   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   handlerB<   s
    		c         C   sQ   xJ t  rL y | j ƒ  d SWq t k
 rH } | j t j k rI ‚  qI q Xq Wd S(   s)   Wait for child to finish, ignoring EINTR.N(   R$   t   waitt   OSErrorR   R   (   R   t   childR   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR+   C   s    	
c         C   s\  t  j  t  j |  j ƒ t  j  t  j |  j ƒ t  j  t  j t  j ƒ t  j  t  j t  j ƒ t	 |  _
 t	 |  _ t j ƒ  } t j r‹ d G| GHn  t t j d d t | ƒ g ƒ } | rÛ |  j | ƒ |  j
 sÛ t j d ƒ qÛ n  |  j |  j
 ƒ |  j |  j ƒ t	 |  _
 ~ yI t j d d t | ƒ g ƒ } |  j | ƒ t j d ƒ |  j d ƒ WnB t k
 r”|  j |  j ƒ |  j |  j
 ƒ t j r•d GHq•n Xt t j d d t | ƒ g ƒ } | rÌ|  j | ƒ n  z{ y( t  j d ƒ t  j ƒ  t j d ƒ Wn? t k
 rt j rFd	 GHqFn+ |  j d
 t j ƒ  ƒ n X|  j d ƒ Wd  t  j d ƒ Xd  S(   Ns   test runner's pid ist   kills   -HUPi   s   -USR1s#   HandlerBCalled exception not raiseds   HandlerBCalled exception caughts   -USR2s(   KeyboardInterrupt (the alarm() went off)s+   Some other exception woke us from pause: %ssT   pause returned of its own accord, and the signal didn't arrive after another second.i    (    t   signalt   SIGHUPR(   t   SIGUSR1R*   t   SIGUSR2t   SIG_IGNt   SIGALRMt   default_int_handlert   FalseR%   R)   R   t   getpidR    R&   R   t
   subprocesst   Popent   strR+   t   timet   sleept
   assertTruet   assertFalset   failR   t   alarmt   pauset   KeyboardInterruptR    t
   format_exc(   R   t   pidR-   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   run_testM   sX    			!			! 
		t   freebsd6sO   inter process signals not reliable (do not mix well with threading) on freebsd6c   
      C   s“  t  j ƒ  \ } } t t  j | ƒ ƒ �f} t t  j | d ƒ ƒ �E} t  j ƒ  } | d k rç z| y_ | j ƒ  t | ƒ �C y |  j ƒ  Wn t j t	 j
 ƒ  | ƒ n Xt j d  | ƒ Wd  QXWn d GHt	 j ƒ  n XWd  t ƒ  Xn  | j ƒ  t j | g g  g  |  j ƒ \ } } } | | k rLt j | ƒ }	 |	 rs|  j |	 ƒ qsn' t  j | t j ƒ |  j d |  j ƒ t  j | d ƒ Wd  QXWd  QXd  S(   Nt   wi    s   Uh oh, raised from pickle.s!   Test deadlocked after %d seconds.(   R   t   pipeR   t   fdopent   forkt   closeRE   t   picklet   dumpR    RC   R   t	   print_excR	   t   selectt   MAX_DURATIONt   loadR?   R.   R/   t   SIGKILLt   waitpid(
   R   t	   os_done_rt	   os_done_wt   done_rt   done_wR-   t   rRG   t   xt   tb(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt	   test_main‘   s8    	 

'	N(   R   R   RP   R   R   R   R#   R(   R*   R+   RE   t   unittestt   skipIft   syst   platformR[   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR   '   s   					
	Dt   BasicSignalTestsc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         G   s   d  S(   N(    (   R   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   trivial_signal_handlerÄ   s    c         C   s6   |  j  t t j d ƒ |  j  t t j d |  j ƒ d  S(   Ni’  (   t   assertRaisest
   ValueErrorR/   t	   getsignalRa   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt,   test_out_of_range_signal_number_raises_errorÇ   s    c         C   s    |  j  t t j t j d  ƒ d  S(   N(   Rb   t	   TypeErrorR/   R1   R   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt0   test_setting_signal_handler_to_none_raises_errorÍ   s    c         C   sj   t  j  t  j |  j ƒ } |  j t  j t  j ƒ |  j ƒ t  j  t  j | ƒ |  j t  j t  j ƒ | ƒ d  S(   N(   R/   R0   Ra   t   assertEqualRd   (   R   t   hup(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_getsignalÑ   s
    
(   R   R   Ra   Re   Rg   Rj   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR`   Â   s   			s   Windows specifict   WindowsSignalTestsc           B   s   e  Z d  „  Z RS(   c         C   s°   d „  } xT t  j t  j t  j t  j t  j t  j t  j f D]" } t  j  | t  j  | | ƒ ƒ q: W|  j t	 ƒ � t  j  d | ƒ Wd  QX|  j t	 ƒ � t  j  d | ƒ Wd  QXd  S(   Nc         S   s   d  S(   N(   R   (   RY   t   y(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   <lambda>Ý   R   iÿÿÿÿi   (
   R/   t   SIGABRTt   SIGBREAKt   SIGFPEt   SIGILLt   SIGINTt   SIGSEGVt   SIGTERMRb   Rc   (   R   t   handlert   sig(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_issue9324Û   s    	 (   R   R   Rw   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyRk   Ù   s   t   WakeupFDTestsc           B   s   e  Z d  „  Z RS(   c         C   s&   t  j ƒ  } |  j t t j | ƒ d  S(   N(   R    t   make_bad_fdRb   Rc   R/   t   set_wakeup_fd(   R   t   fd(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_invalid_fdí   s    (   R   R   R|   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyRx   ë   s   t   WakeupSignalTestsc           B   s8   e  Z d  Z d Z d „  Z d „  Z d „  Z d „  Z RS(   i
   i   c         C   s¹   d d  l  } t j d ƒ z, t j ƒ  } t j |  j ƒ t j ƒ  } Wd  t j d ƒ X|  j | | |  j k  ƒ | j  |  j g g  g  |  j ƒ t j ƒ  } |  j | | |  j k  ƒ d  S(   Niÿÿÿÿi   i    (	   RO   R/   R@   R;   R<   t   TIMEOUT_FULLR=   t   TIMEOUT_HALFt   read(   R   RO   t   before_timet   mid_timet
   after_time(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_wakeup_fd_early÷   s    c         C   s�   d d  l  } t j d ƒ zG t j ƒ  } |  j | j | j  |  j g g  g  |  j ƒ t j ƒ  } Wd  t j d ƒ X|  j | | |  j	 k  ƒ d  S(   Niÿÿÿÿi   i    (
   RO   R/   R@   R;   Rb   t   errorR€   R~   R=   R   (   R   RO   R�   Rƒ   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_wakeup_fd_during	  s    c         C   s™   d d  l  } t j t j d „  ƒ |  _ t j ƒ  \ |  _ |  _ | j  |  j | j d ƒ } | t j	 B} | j  |  j | j
 | ƒ t j |  j ƒ |  _ d  S(   Niÿÿÿÿc         S   s   d  S(   N(   R   (   RY   Rl   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyRm     R   i    (   t   fcntlR/   R4   t   alrmR   RH   R€   t   writet   F_GETFLt
   O_NONBLOCKt   F_SETFLRz   t
   old_wakeup(   R   R‡   t   flags(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR     s    c         C   sJ   t  j |  j ƒ t j |  j ƒ t j |  j ƒ t  j  t  j |  j ƒ d  S(   N(	   R/   Rz   R�   R   RK   R€   R‰   R4   Rˆ   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR   "  s    (   R   R   R~   R   R„   R†   R   R   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR}   ò   s   			
t   SiginterruptTestc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sA   t  j |  _ t  j  |  j d „  ƒ } |  j t  j  |  j | ƒ d S(   s½   Install a no-op signal handler that can be set to allow
        interrupts or not, and arrange for the original signal handler to be
        re-installed when the test is finished.
        c         S   s   d  S(   N(   R   (   RY   Rl   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyRm   1  R   N(   R/   R1   R'   t
   addCleanup(   R   t
   oldhandler(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR   +  s    c         C   sø   t  j ƒ  \ } } |  j t  j | ƒ t  j ƒ  } t  j ƒ  } | d k rˆ z1 t j d ƒ t  j | |  j	 ƒ t j d ƒ Wd t
 ƒ  Xnl |  j t  j | d ƒ t  j | ƒ y t  j | d ƒ } t SWn, t k
 ró } | j t j k rï ‚  n  t SXd S(   s¿   Perform a read during which a signal will arrive.  Return True if the
        read is interrupted by the signal and raises an exception.  Return False
        if it returns normally.
        i    gš™™™™™É?Ni   (   R   RH   R�   RK   R7   RJ   R;   R<   R.   R'   R	   RS   R€   R6   R,   R   R   R$   (   R   RX   RG   t   ppidRD   t   dt   err(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   readpipe_interrupted4  s&    c         C   s6   |  j  ƒ  } |  j | ƒ |  j  ƒ  } |  j | ƒ d S(   s¦   If a signal handler is installed and siginterrupt is not called
        at all, when that signal arrives, it interrupts a syscall that's in
        progress.
        N(   R•   R=   (   R   t   i(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_without_siginterruptj  s    c         C   sI   t  j |  j d ƒ |  j ƒ  } |  j | ƒ |  j ƒ  } |  j | ƒ d S(   sÅ   If a signal handler is installed and siginterrupt is called with
        a true value for the second argument, when that signal arrives, it
        interrupts a syscall that's in progress.
        i   N(   R/   t   siginterruptR'   R•   R=   (   R   R–   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_siginterrupt_onu  s
    c         C   sI   t  j |  j d ƒ |  j ƒ  } |  j | ƒ |  j ƒ  } |  j | ƒ d S(   sÎ   If a signal handler is installed and siginterrupt is called with
        a false value for the second argument, when that signal arrives, it
        does not interrupt a syscall that's in progress.
        i    N(   R/   R˜   R'   R•   R>   (   R   R–   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_siginterrupt_off�  s
    (   R   R   R   R•   R—   R™   Rš   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR�   (  s
   			6		t
   ItimerTestc           B   s˜   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e	 j
 e j d k d	 ƒ d
 „  ƒ Z e	 j
 e j d k d ƒ d „  ƒ Z d „  Z RS(   c         C   s:   t  |  _ d |  _ d  |  _ t j t j |  j ƒ |  _ d  S(   Ni    (	   R6   t   hndl_calledt
   hndl_countR   t   itimerR/   R4   t   sig_alrmt	   old_alarm(   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR   �  s    			c         C   s?   t  j  t  j |  j ƒ |  j d  k	 r; t  j |  j d ƒ n  d  S(   Ni    (   R/   R4   R    Rž   R   t	   setitimer(   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR   –  s    c         G   s$   t  |  _ t j r  d | f GHn  d  S(   Ns   SIGALRM handler invoked(   R$   Rœ   R    R&   (   R   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyRŸ   œ  s    		c         G   sŠ   t  |  _ |  j d k r* t j d ƒ ‚ n6 |  j d k r` t j t j d ƒ t j r` d GHq` n  |  j d 7_ t j r† d | f GHn  d  S(   Ni   s.   setitimer didn't disable ITIMER_VIRTUAL timer.i    s   last SIGVTALRM handler calli   s   SIGVTALRM handler invoked(	   R$   Rœ   R�   R/   t   ItimerErrorR¡   t   ITIMER_VIRTUALR    R&   (   R   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt
   sig_vtalrm¡  s    			c         G   s7   t  |  _ t j t j d ƒ t j r3 d | f GHn  d  S(   Ni    s   SIGPROF handler invoked(   R$   Rœ   R/   R¡   t   ITIMER_PROFR    R&   (   R   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   sig_prof³  s    		c         C   s    |  j  t j t j d d ƒ d  S(   Niÿÿÿÿi    (   Rb   R/   R¢   R¡   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_itimer_excº  s    c         C   sQ   t  j |  _ t  j |  j d ƒ t j r0 d GHn  t  j ƒ  |  j |  j t	 ƒ d  S(   Ng      ð?s   
call pause()...(
   R/   t   ITIMER_REALRž   R¡   R    R&   RA   Rh   Rœ   R$   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_itimer_realÃ  s    	
RF   t   netbsd5sD   itimer not reliable (does not mix well with threading) on some BSDs.c         C   sÏ   t  j |  _ t  j  t  j |  j ƒ t  j |  j d d ƒ t j ƒ  } xU t j ƒ  | d k  rŽ t d d d ƒ } t  j |  j ƒ d	 k rG PqG qG W|  j	 d ƒ |  j
 t  j |  j ƒ d
 ƒ |  j
 |  j t ƒ d  S(   Ng333333Ó?gš™™™™™É?g      N@i90  i2	 i“–˜ g        s8   timeout: likely cause: machine too slow or load too high(   g        g        (   g        g        (   R/   R£   Rž   t	   SIGVTALRMR¤   R¡   R;   t   powt	   getitimert   skipTestRh   Rœ   R$   (   R   t
   start_timet   _(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_itimer_virtualÍ  s    sB   itimer not reliable (does not mix well with threading) on freebsd6c         C   sÏ   t  j |  _ t  j  t  j |  j ƒ t  j |  j d d ƒ t j ƒ  } xU t j ƒ  | d k  rŽ t d d d ƒ } t  j |  j ƒ d k rG PqG qG W|  j	 d ƒ |  j
 t  j |  j ƒ d	 ƒ |  j
 |  j t ƒ d  S(
   Ngš™™™™™É?g      N@i90  i2	 i“–˜ g        s8   timeout: likely cause: machine too slow or load too high(   g        g        (   g        g        (   R/   R¥   Rž   t   SIGPROFR¦   R¡   R;   R¬   R­   R®   Rh   Rœ   R$   (   R   R¯   R°   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_itimer_profä  s    c         C   sC   t  j |  _ t  j |  j d ƒ t j d ƒ |  j |  j t ƒ d  S(   Ng�íµ ÷Æ°>i   (	   R/   R¨   Rž   R¡   R;   R<   Rh   Rœ   R$   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   test_setitimer_tinyú  s    (   RF   Rª   (   R   R   R   R   RŸ   R¤   R¦   R§   R©   R\   R]   R^   R_   R±   R³   R´   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR›   Ž  s   								
c           C   s#   t  j t t t t t t t ƒ d  S(   N(	   R    t   run_unittestR`   R   Rx   R}   R�   R›   Rk   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyR[     s    t   __main__(   R   R   (!   R\   t   testR    t
   contextlibR   R   RL   RO   R/   R8   R    R^   R   R;   R   R_   t   SkipTestt	   ExceptionR   R	   R   R]   t   TestCaseR   R`   t
   skipUnlessRk   Rx   R}   R�   R›   R[   R   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_signal.pyt   <module>   s<   0	
		š5eu	