diff options
author | Steven Knight <knight@baldmt.com> | 2004-07-13 08:06:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-07-13 08:06:06 (GMT) |
commit | d4da437a7df193b540560e8bb06aa1573b615cc8 (patch) | |
tree | 00389ded72bf2cd3148311e7fddf8466bc535bcd /etc | |
parent | 6dfe1bb16b84e5ce1f845bf3d1c83c2b34f65129 (diff) | |
download | SCons-d4da437a7df193b540560e8bb06aa1573b615cc8.zip SCons-d4da437a7df193b540560e8bb06aa1573b615cc8.tar.gz SCons-d4da437a7df193b540560e8bb06aa1573b615cc8.tar.bz2 |
Fix tests on systems where 'ar' prints warnings about creating archives. (Kevin Quick)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/TestSCons.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py index 8cba239..737f8a2 100644 --- a/etc/TestSCons.py +++ b/etc/TestSCons.py @@ -208,3 +208,14 @@ class TestSCons(TestCommon): self.match_func = match_re_dotall apply(self.run, [], kw) self.match_func = old_match_func + +# In some environments, $AR will generate a warning message to stderr +# if the library doesn't previously exist and is being created. One +# way to fix this is to tell AR to be quiet (sometimes the 'c' flag), +# but this is difficult to do in a platform-/implementation-specific +# method. Instead, we will use the following as a stderr match for +# tests that use AR so that we will view zero or more "ar: creating +# <file>" messages to be successful executions of the test (see +# test/AR.py for sample usage). + +noisy_ar=r'(ar: creating \S+\n?)*' |