summaryrefslogtreecommitdiffstats
path: root/test/SharedLibrary.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)
commit502bdb0f465217b1b34bfd53cbf32385e40bdce5 (patch)
treec2864cbd6341ba776c90abb8c2cbb1456906a0a5 /test/SharedLibrary.py
parent9378d5faa513dad65da961b279c92722d593be28 (diff)
downloadSCons-502bdb0f465217b1b34bfd53cbf32385e40bdce5.zip
SCons-502bdb0f465217b1b34bfd53cbf32385e40bdce5.tar.gz
SCons-502bdb0f465217b1b34bfd53cbf32385e40bdce5.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/SharedLibrary.py')
-rw-r--r--test/SharedLibrary.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/SharedLibrary.py b/test/SharedLibrary.py
index d4eb730..185cf9f 100644
--- a/test/SharedLibrary.py
+++ b/test/SharedLibrary.py
@@ -31,7 +31,7 @@ import sys
import TestCmd
import TestSCons
-test = TestSCons.TestSCons(match=TestCmd.match_re_dotall)
+test = TestSCons.TestSCons()
test.write('SConstruct', """
import sys
@@ -191,7 +191,9 @@ main(int argc, char *argv[])
}
""")
-test.run(arguments = '.', stderr=TestSCons.noisy_ar)
+test.run(arguments = '.',
+ stderr=TestSCons.noisy_ar,
+ match=TestSCons.match_re_dotall)
if os.name == 'posix':
os.environ['LD_LIBRARY_PATH'] = '.'
@@ -206,14 +208,18 @@ if sys.platform == 'win32' or string.find(sys.platform, 'irix') != -1:
else:
test.run(arguments = '-f SConstructFoo', status=2, stderr='''\
scons: \*\*\* Source file: foo\..* is static and is not compatible with shared target: .*
-''')
+''',
+ match=TestSCons.match_re_dotall)
# Run it again to make sure that we still get the error
# even though the static objects already exist.
test.run(arguments = '-f SConstructFoo', status=2, stderr='''\
scons: \*\*\* Source file: foo\..* is static and is not compatible with shared target: .*
-''')
+''',
+ match=TestSCons.match_re_dotall)
-test.run(arguments = '-f SConstructFoo2', stderr=TestSCons.noisy_ar)
+test.run(arguments = '-f SConstructFoo2',
+ stderr=TestSCons.noisy_ar,
+ match=TestSCons.match_re_dotall)
if sys.platform == 'win32':
# Make sure we don't insert a .def source file (when