Issue 2172: RPCGEN test fix for OS X
authorGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Aug 2008 23:38:20 +0000 (23:38 +0000)
committerGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Aug 2008 23:38:20 +0000 (23:38 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3276 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Rpcgen/RPCGEN.py

index ea224384101101702f6c5ebd07bc340b487adb4a..8edb7b7e37ae124a8948702c02553a7381a8126a 100644 (file)
@@ -135,7 +135,12 @@ int main(int argc, char **args) {
 """)
 
 
-    test.run()
+    # OX X through 10.5 include an ancient version of rpcgen from 1998 that
+    # generates numerous compile warnings.  Ignore stderr for this platform.
+    if sys.platform[:6] == 'darwin':
+        test.run(stderr=None)
+    else:
+        test.run()
 
     test.run(program=test.workpath('rpcclnt'+_exe))