Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
ebd422ae
Commit
ebd422ae
authored
Jul 20, 2011
by
Simon Marlow
Browse files
fix a bug in displaying diffs when there is no expected output
parent
5296caf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/testlib.py
View file @
ebd422ae
...
...
@@ -1399,7 +1399,7 @@ def compare_outputs( kind, normaliser, extra_normaliser,
expected_str
=
extra_normaliser
(
normaliser
(
expected_raw
))
else
:
expected_str
=
''
expected_file
=
''
expected_file
=
'
/dev/null
'
actual_raw
=
read_no_crs
(
actual_file
)
actual_str
=
extra_normaliser
(
normaliser
(
actual_raw
))
...
...
@@ -1407,7 +1407,7 @@ def compare_outputs( kind, normaliser, extra_normaliser,
if
expected_str
!=
actual_str
:
print
'Actual '
+
kind
+
' output differs from expected:'
if
expected_file
==
''
:
if
expected_file
==
'
/dev/null
'
:
expected_normalised_file
=
'/dev/null'
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment