summaryrefslogtreecommitdiffstats
path: root/etc/TestSCons.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-07-13 08:06:06 (GMT)
committerSteven Knight <knight@baldmt.com>2004-07-13 08:06:06 (GMT)
commitd4da437a7df193b540560e8bb06aa1573b615cc8 (patch)
tree00389ded72bf2cd3148311e7fddf8466bc535bcd /etc/TestSCons.py
parent6dfe1bb16b84e5ce1f845bf3d1c83c2b34f65129 (diff)
downloadSCons-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/TestSCons.py')
-rw-r--r--etc/TestSCons.py11
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?)*'