U
    ,d                     @   sX   d dl mZ d dlmZ d dlmZmZ d dlZeG dd deZe	dkrTe
  dS )    )njit)GdbMIDriver)TestCaseneeds_subprocessNc                   @   s   e Zd Zdd ZdS )Testc                    s   t dddd  t dd fdd}|d tt}|jdd	d
 |  |d |d d}|| |jddd
 |  |d |	d |d |
  d S )NT)debugc                 S   s   | | }|S )N )xycr   r   O/tmp/pip-unpacked-wheel-eu7e0c37/numba/tests/gdb/test_conditional_breakpoint.pyfoo   s    zTest.test.<locals>.fooc                    s$   d}t dD ]}| || 7 }q|S )Nr   
   )range)aaccir   r   r   call_foo   s    zTest.test.<locals>.call_foor      zx == 4)line	condition   zE[frame={level="0",args=[{name="x",value="4"},{name="y",value="10"}]}]   zi == 8   z{name="i",value="8"})r   r   __file__Zset_breakpointrunZcheck_hit_breakpointZstack_list_argumentsZassert_outputZcontZstack_list_variablesquit)selfr   Zdriverexpectr   r   r   test   s$    






z	Test.testN)__name__
__module____qualname__r    r   r   r   r   r      s   r   __main__)Znumbar   Znumba.tests.gdb_supportr   Znumba.tests.supportr   r   Zunittestr   r!   mainr   r   r   r   <module>   s   #