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
Q\¬Qc@sŒddlZddlmZddlZddlZejdƒZejdZdej    fd„ƒYZ
d„Z e dkrˆe ƒndS(    iÿÿÿÿN(t test_supporttMacOSt2t    TestMacOScBs#eZd„Zd„Zd„ZRS(cCsµtjjdƒsdSz‡ttjdƒ}|jdƒ|jƒtj    dddddtjgƒt
j tjƒ\}}|j |dƒ|j |dƒWdtj tjƒXdS(Ns/Developer/Tools/SetFiletws
s-ttABCDs-ctEFGH(tostpathtexiststopenRtTESTFNtwritetcloset
subprocesstcallRtGetCreatorAndTypet assertEqualtunlink(tselftfptcrttp((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyttestGetCreatorAndType s 
 cCsitjjdƒsdSz;ttjdƒ}|jdƒ|jƒtj    tjddƒtj
tjƒ\}}|j |dƒ|j |dƒt j dtjgdt jƒjƒd}d}d}xf|jƒD]X}|jdƒr|jƒd    d
d    !}n|jd ƒrÔ|jƒd    d
d    !}qÔqÔW|j |dƒ|j |dƒWdtjtjƒXdS( Ns/Developer/Tools/GetFileInfoRs
RRtstdoutistype:iÿÿÿÿiscreator:(RRR    R
RR R R RtSetCreatorAndTypeRRRtPopentPIPEt communicatetNonet
splitlinest
startswithtsplitR(RRRRtdatatln((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyttestSetCreatorAndType s. 
 
cCszîttjdƒ}|jdƒ|jƒtjtjdƒ}|jdƒ|jƒttjdƒ}|jƒ}|jƒ|j|dƒtjtjdƒ}|jdƒ}|jdƒ}|jƒ|j|dƒ|j|dƒWdt    j
tjƒXdS(    NRs hello world
s*wbsgoodbye world
trs*rbidt( R
RR R R RtopenrftreadRRR(RRtrfpR!tdata2((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyt
testOpenRFBs$ 
 
 
 
(t__name__t
__module__RR#R*(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyR
s        "cCstjtƒdS(N(Rt run_unittestR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyt    test_main]st__main__( tunittestttestRRRt import_moduleRR tTESTFN2tTestCaseRR.R+(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_macos.pyt<module>s    S