Fixed an issue with the way the test was setting up the CPPPATH.
authorbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 26 Sep 2008 04:42:05 +0000 (04:42 +0000)
committerbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 26 Sep 2008 04:42:05 +0000 (04:42 +0000)
Was causing buildbot failure on centos5 buildbot.
Turns out some weird interaction with the bogus code which is replaced
below was only happening when setuptools was installed
in the python tree being used for tests.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3481 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Scanner/RCTests.py

index c7ac3e478cb64abfcab5b5f768c8375a7402ff15..41954f13612ecaa5bc2e56305f9dd6d64e830045 100644 (file)
@@ -122,20 +122,20 @@ def deps_match(self, deps, headers):
 
 class RCScannerTestCase1(unittest.TestCase):
     def runTest(self):
+        path = []
         env = DummyEnvironment(RCSUFFIXES=['.rc','.rc2'],
-                               CPPPATH=sys.path)
+                               CPPPATH=path)
         s = SCons.Scanner.RC.RCScan()
-        path = s.path(env)
         deps = s(env.File('t1.rc'), env, path)
         headers = ['t1.h']
         deps_match(self, deps, headers)
 
 class RCScannerTestCase2(unittest.TestCase):
     def runTest(self):
+        path = []
         env = DummyEnvironment(RCSUFFIXES=['.rc','.rc2'],
-                               CPPPATH=sys.path)
+                               CPPPATH=path)
         s = SCons.Scanner.RC.RCScan()
-        path = s.path(env)
         deps = s(env.File('t2.rc'), env, path)
         headers = ['MSG00410.bin',
                    'abc.ico','bullseye.cur',