comparison tests/swig_tests/resource_tests.py @ 144:d2f1e81fbe2c

* Fixed a scons issue, where libraries checked for C instead of C++ * Fixed a shutdown order problem - deleting a GLImage will reference the RenderBackend, thus image pools must be deleted first. * Added an explicit Engine.destroy method to force the shutdown, in case python fails to do so. Necessary - see above. * The Pool::printStatistics now gives out information how many resources are loaded. Called before destruction. Add 'pool' to the LogModules to check memory pooling issues.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 09 Oct 2008 06:18:36 +0000
parents 4a0efb7baf70
children 81641655bc38
comparison
equal deleted inserted replaced
143:fe7ff4808529 144:d2f1e81fbe2c
8 8
9 def setUp(self): 9 def setUp(self):
10 self.engine = getEngine() 10 self.engine = getEngine()
11 11
12 def tearDown(self): 12 def tearDown(self):
13 del self.engine 13 self.engine.destroy()
14 14
15 def testImagePool(self): 15 def testImagePool(self):
16 pool = self.engine.getImagePool() 16 pool = self.engine.getImagePool()
17 self.assert_(pool) 17 self.assert_(pool)
18 self.assert_(pool.getResourceCount(fife.RES_LOADED) == 0) 18 self.assert_(pool.getResourceCount(fife.RES_LOADED) == 0)