summaryrefslogtreecommitdiffstats
path: root/test/AR.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-07-15 12:39:34 (GMT)
committerSteven Knight <knight@baldmt.com>2004-07-15 12:39:34 (GMT)
commitaf9e270bf0dc34fecff450199f90dc14bb0334de (patch)
treec2864cbd6341ba776c90abb8c2cbb1456906a0a5 /test/AR.py
parentd4da437a7df193b540560e8bb06aa1573b615cc8 (diff)
downloadSCons-af9e270bf0dc34fecff450199f90dc14bb0334de.zip
SCons-af9e270bf0dc34fecff450199f90dc14bb0334de.tar.gz
SCons-af9e270bf0dc34fecff450199f90dc14bb0334de.tar.bz2
Win32 portability: add an explicit match argument to TestCommon.py, use it to only use match_re_dotall when we're using TestSCons.noisy_ar.
Diffstat (limited to 'test/AR.py')
-rw-r--r--test/AR.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/AR.py b/test/AR.py
index f27aeb0..81a57b5 100644
--- a/test/AR.py
+++ b/test/AR.py
@@ -32,7 +32,7 @@ import TestSCons
python = TestSCons.python
_exe = TestSCons._exe
-test = TestSCons.TestSCons(match=TestSCons.match_re_dotall)
+test = TestSCons.TestSCons()
test.write("wrapper.py",
"""import os
@@ -82,11 +82,15 @@ main(int argc, char *argv[])
""")
-test.run(arguments = 'f' + _exe, stderr=TestSCons.noisy_ar)
+test.run(arguments = 'f' + _exe,
+ stderr=TestSCons.noisy_ar,
+ match=TestSCons.match_re_dotall)
test.fail_test(os.path.exists(test.workpath('wrapper.out')))
-test.run(arguments = 'b' + _exe, stderr=TestSCons.noisy_ar)
+test.run(arguments = 'b' + _exe,
+ stderr=TestSCons.noisy_ar,
+ match=TestSCons.match_re_dotall)
test.fail_test(test.read('wrapper.out') != "wrapper.py\n")