File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
"""
3
3
import json
4
4
import os
5
- import subprocess
5
+ import subprocess as sp
6
+ from sys import platform
6
7
7
8
import ljmmm
8
9
@@ -49,14 +50,14 @@ def output_reg(file, reg):
49
50
50
51
def sanity_test ():
51
52
include_dir = os .path .split (OUTPUT_FILE )[0 ]
52
- subprocess . check_call ([
53
+ sp . run ([
53
54
'gcc' ,
54
55
'-o' , 'gen_test/test_c_header' ,
55
56
SANITY_TEST_FILE ,
56
57
'-I%s' % include_dir
57
58
])
58
59
59
- ret = subprocess . call (['gen_test/test_c_header' ])
60
+ ret = sp . run (['gen_test/test_c_header' ])
60
61
if ret != 0 :
61
62
raise Exception ("Expected output to be 0, but was: %d" % ret )
62
63
@@ -86,7 +87,8 @@ def generate():
86
87
87
88
finish (file )
88
89
89
- sanity_test ()
90
+ if platform != "win32" :
91
+ sanity_test ()
90
92
91
93
if __name__ == "__main__" :
92
94
generate ()
You can’t perform that action at this time.
0 commit comments