summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-07-20 15:13:39 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-07-20 16:24:33 +0100
commitebd422aed41048476aa61dd4c520d43becd78682 (patch)
tree5061c943a52f71f153c69cbe13ba06cb5398e5b2
parent5296caf07f0d7cb8df3b7a9e3e79e39b3d09d393 (diff)
downloadhaskell-ebd422aed41048476aa61dd4c520d43becd78682.tar.gz
fix a bug in displaying diffs when there is no expected output
-rw-r--r--testsuite/driver/testlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 75d641f2f6..7fdc6e63e3 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -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: