diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-07-20 15:13:39 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-07-20 16:24:33 +0100 |
commit | ebd422aed41048476aa61dd4c520d43becd78682 (patch) | |
tree | 5061c943a52f71f153c69cbe13ba06cb5398e5b2 /testsuite | |
parent | 5296caf07f0d7cb8df3b7a9e3e79e39b3d09d393 (diff) | |
download | haskell-ebd422aed41048476aa61dd4c520d43becd78682.tar.gz |
fix a bug in displaying diffs when there is no expected output
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/driver/testlib.py | 4 |
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: |