File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,22 +109,29 @@ def cleanup(out):
109109 p = subprocess .Popen (simplecpp_cmd , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
110110 comm = p .communicate ()
111111 simplecpp_ec = p .returncode
112- simplecpp_output = cleanup (comm [0 ])
112+ simplecpp_output = comm [0 ]
113+ simplecpp_output_c = cleanup (comm [0 ])
113114 simplecpp_err = comm [0 ].decode ('utf-8' ).strip ()
114115
115- if simplecpp_output != clang_output_c and simplecpp_output != gcc_output_c :
116+ if simplecpp_output_c != clang_output_c and simplecpp_output_c != gcc_output_c :
116117 filename = cmd [cmd .rfind ('/' )+ 1 :]
117118 if filename in todo :
118119 print ('TODO ' + cmd )
119120 usedTodos .append (filename )
120121 else :
121122 print ('FAILED ' + cmd )
122- print ('---expected:' )
123+ print ('---expected (clang) :' )
123124 print (clang_output_c )
125+ print ('---expected (gcc):' )
126+ print (gcc_output_c )
127+ print ('---actual:' )
128+ print (simplecpp_output_c )
124129 print ('---actual:' )
125130 print (simplecpp_output )
126- print ('---original:' )
131+ print ('---original (clang) :' )
127132 print (clang_output )
133+ print ('---original (gcc):' )
134+ print (gcc_output )
128135 if simplecpp_ec :
129136 print ('simplecpp failed - ' + simplecpp_err )
130137 numberOfFailed = numberOfFailed + 1
You can’t perform that action at this time.
0 commit comments