tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Q\¬Qc@sÂddlZddlZddlZddlZddlZddlmZmZy ejWne    k
r|ej
d‚nXd„Z dej fd„ƒYZ d„Zedkr¾eƒndS(    iÿÿÿÿN(tTESTFNt run_unittests-select.poll not defined -- skipping test_pollcCs;g}x.|D]&\}}||@r |j|ƒq q W|S(N(tappend(treadytflagtmatchtfdtmode((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pytfind_ready_matching s
 
t    PollTestscBs,eZd„Zd„Zd„Zd„ZRS(cCstjƒ}d}d}t|ƒ}g}g}i}i}x‡t|ƒD]y}    tjƒ\}
} |j|
ƒ|j|
tjƒ|j| tj    ƒ|j
|
ƒ|j
| ƒ| ||
<|
|| <qIWg} x|rè|jƒ} t | tj    ƒ}|st d‚nt j|ƒ} tj| |ƒ|jƒ} t | tjƒ}|sTt d‚nt j|ƒ}
tj|
|ƒ}|jt|ƒ|ƒ| j
|ƒtj||
ƒtj|
ƒ|j||
ƒ|j|
ƒ|j||
ƒqÏW|j| |g|ƒdS(Ni s This is a test.sno pipes ready for writingsno pipes ready for reading(tselecttpolltlentrangetostpipetregistertmodifytPOLLINtPOLLOUTRRt RuntimeErrortrandomtchoicetwritetreadt assertEqualtcloset
unregistertremove(tselftpt    NUM_PIPEStMSGtMSG_LENtreaderstwriterstr2wtw2rtitrdtwrtbufsRt ready_writerst ready_readerstbuf((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyt
test_poll1sN     
           c    CsÍd}ytj|ƒWntk
r*nXtjƒ}|j|ƒ|jƒ}|j|d|tjfƒtt    dƒ}|j
ƒ}tjƒ}|j|ƒ|jƒ}|j|dd|ƒ|jƒ|jƒ}|j|d|tjfƒtj t    ƒtjƒ}|j t |j|ƒ|j t |j|ƒtjƒ}|j t|jdƒtjƒ}dd    d„ƒY}dd
d„ƒY}|j t |j|ƒdƒ|j t |j|ƒdƒdS( Ni*itwitNopecBseZRS((t__name__t
__module__(((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyR/istAlmostcBseZd„ZRS(cSsdS(Ntfileno((R((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyR3ms(R0R1R3(((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyR2ls(((RRtOSErrorR
R RRtPOLLNVALtopenRR3tunlinkt assertRaisest    TypeErrorRtKeyError(    RtFDRtrtfRtpollsterR/R2((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pytpoll_unit_testsGs:        
     c    Csd}tj|dƒ}tjƒ}|j|tjƒx¸ddD]¬}|j|ƒ}|gkriqBn|d\}}|tj@r´|jƒ}|d krB|jd ƒqBqBqB|tj@rÝ|jƒ}|sBPqBqBqB|jd |ƒqBW|j    ƒdS(Ns?for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; doneR<iièiÐi i@i€>iÿÿÿÿi
ts6error: pipe seems to be closed, but still returns datas,Unexpected return value from select.poll: %s(iièiÐi i@i€>(iÿÿÿÿ(
iÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿiÿÿÿÿ(
RtpopenR
R RRtPOLLHUPtreadlinetfailR(    RtcmdRR>ttouttfdlistRtflagstline((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyt
test_poll2vs*       cCsÛtjƒ}|jdƒ|jt|jd    ƒd
}|dkrQ|jdƒntjƒ}|jt|jdtjdƒ|jt|jdtjdƒ|jt|jtj    dƒ|jt|jtj
dƒdS( Nili@iiisOverflow must have occurredili( R
R RR8t OverflowErrorRDt    _testcapitSHRT_MAXt    USHRT_MAXtINT_MAXtUINT_MAX(RR>tx((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyt
test_poll3s    (R0R1R-R?RJRR(((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyR    s    1    /    cCsttƒdS(N(RR    (((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyt    test_main£st__main__(RR
RtunittestRLttest.test_supportRRR tAttributeErrortSkipTestRtTestCaseR    RSR0(((sV/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_poll.pyt<module>s0       