Skip to content

Commit 1911425

Browse files
committed
tests
1 parent d6ff6c0 commit 1911425

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

run-tests.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)