Fix tests on systems where 'ar' prints warnings about creating archives. (Kevin...
[scons.git] / test / ARFLAGS.py
index a9dc5728c858d45f5bd5ffa0343f3e237564f8af..15ce994b24de7cb10f7abd7a628e449681ef5c68 100644 (file)
@@ -32,7 +32,7 @@ import TestSCons
 python = TestSCons.python
 _exe   = TestSCons._exe
 
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match=TestSCons.match_re_dotall)
 
 test.write("wrapper.py",
 """import os
@@ -82,11 +82,11 @@ main(int argc, char *argv[])
 """)
 
 
-test.run(arguments = 'f' + _exe)
+test.run(arguments = 'f' + _exe, stderr=TestSCons.noisy_ar)
 
 test.fail_test(os.path.exists(test.workpath('wrapper.out')))
 
-test.run(arguments = 'b' + _exe)
+test.run(arguments = 'b' + _exe, stderr=TestSCons.noisy_ar)
 
 test.fail_test(test.read('wrapper.out') != "wrapper.py\n")