tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
Z\¬Qc@sÇddlZddlZddlZejejejƒZejejejejƒZddlZej    ej
ƒZ dej fd„ƒYZ dej fd„ƒYZedkrÃejƒndS(iÿÿÿÿNtRefcountTestCasecBseZd„Zd„ZRS(cCsÄddlm}tj}tj|_tjtg|_d„}|j    ||ƒdƒt|ƒ}|j
||ƒdkƒ|d|ƒ}|j    |dƒd}t j ƒ|j    ||ƒdƒdS(Niÿÿÿÿ(t getrefcountcSs|S(N((tvalue((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pytcallbacksiiöÿÿÿiîÿÿÿ(tsysRtdllt_testfunc_callback_i_iftctypestc_inttrestypet
MyCallbacktargtypest assertEqualt
assertTruetNonetgctcollect(tselftgrctfRtcbtresult((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyttest_1 s          
cCsnddlm}d„}|j||ƒdƒt|ƒ}|j||ƒdkƒ~|j||ƒdkƒtjƒ|j||ƒdkƒdtjfd„ƒY}|ƒ}t|ƒ|_    |j||ƒdkƒ~|j||ƒdkƒtjƒ|j||ƒdƒt|ƒ}|j||ƒdkƒ||_
~tjƒ|j||ƒdƒdS(Niÿÿÿÿ(RcWsdS(N((targs((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pytfunc'sitXcBseZdefgZRS(ta(t__name__t
__module__t OtherCallbackt_fields_(((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyR8s( RRR RR RRRt    StructureRtcycle(RRRRRtx((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyt test_refcount%s.     
    
     
(RRRR"(((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyR s    t AnotherLeakcBseZd„ZRS(cCs~ddl}tjtjtjtjƒ}d„}||ƒ}|jtjƒ}|ddƒ|j|jtjƒ|ƒdS(NiÿÿÿÿcSs ||dS(Ni((Rtb((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyRYsii(RRt    CFUNCTYPERRR (RRtprotoRRR((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyt test_callbackUs       (RRR'(((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyR#Tst__main__(tunittestRRR%RR
t c_ulonglongRt _ctypes_testtCDLLt__file__RtTestCaseRR#Rtmain(((sb/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_refcounts.pyt<module>s    I