summaryrefslogtreecommitdiff
path: root/test/runtest/xml
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-06-06 00:48:58 +0000
committerSteven Knight <knight@baldmt.com>2010-06-06 00:48:58 +0000
commit0b3d97253286f0fff9f394d99d4848a7001aaf52 (patch)
treeac058390368dd11f3cdf8fb8b716eb2803b8dd6b /test/runtest/xml
parenta76c51b0829d98d30c76a2efc9694b06f170d92d (diff)
downloadscons-0b3d97253286f0fff9f394d99d4848a7001aaf52.tar.gz
Windows portability fixes in various tests. Fix runtest.py detection
of non-zero exit status on systems that don't have os.WEXITSTATUS().
Diffstat (limited to 'test/runtest/xml')
-rw-r--r--test/runtest/xml/output.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/runtest/xml/output.py b/test/runtest/xml/output.py
index 7bf6b2d6..4702b7eb 100644
--- a/test/runtest/xml/output.py
+++ b/test/runtest/xml/output.py
@@ -34,7 +34,8 @@ import re
import TestCmd
import TestRuntest
-test = TestRuntest.TestRuntest(match = TestCmd.match_re)
+test = TestRuntest.TestRuntest(match = TestCmd.match_re,
+ diff = TestCmd.diff_re)
pythonstring = re.escape(TestRuntest.pythonstring)
test_fail_py = re.escape(os.path.join('test', 'fail.py'))
@@ -89,6 +90,11 @@ expect = """\
</results>
""" % locals()
+# Just strip carriage returns so the regular expression matching works.
+contents = test.read('xml.out')
+contents = contents.replace('\r', '')
+test.write('xml.out', contents)
+
test.must_match('xml.out', expect)
test.pass_test()