Skip to content

Commit 52f06fb

Browse files
committed
run-tests.py: do not strip newlines from output
1 parent 740b2b9 commit 52f06fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

run-tests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def cleanup(out):
1010
if len(s) > 1 and s[0] == '#':
1111
continue
1212
s = "".join(s.split())
13-
ret = ret + s
14-
return ret
13+
ret = ret + '\n' + s
14+
return ret.strip()
1515

1616
commands = []
1717

@@ -117,6 +117,10 @@ def cleanup(out):
117117
usedTodos.append(filename)
118118
else:
119119
print('FAILED ' + cmd)
120+
print('expected:')
121+
print(clang_output)
122+
print('actual:')
123+
print(simplecpp_output)
120124
if simplecpp_ec:
121125
print('simplecpp failed - ' + simplecpp_err)
122126
numberOfFailed = numberOfFailed + 1

0 commit comments

Comments
 (0)