summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: