Hi All,

Carsten Neumann wrote:
>> I was thinking we could just put the init call in the main test runner.  
>> That way we can ensure that init has been called before any tests are 
>> run and we don't have to deal with fixtures every time.  In my opinion 
>> this would make the tests simpler and avoid bugs.
>>     
Yeah, that sounds like a good idea.
>> The only issue I see with that approach (or yours) is what happens when 
>> we get to a test where we want to test multiple aspects.  As I 
>> understand it, the number of aspects is fixed at init time in OpenSG 
>> 1.x.  Is there any way with OpenSG 2.0 to adjust the number of aspects 
>> at run time?
Not yet. By switching to CPtrs and a more flexible aspect system we 
might be able to do that, but that's still open.
>> Looking at this method, I doubt it very much, as it checks the system
>> state to make sure osgInit was not already called:
>>
>> ThreadManager::setNumAspects(UInt32 uiNumAspects)
>>
>> Since calling sequences like this: osgInit(); osgExit(); osgInit;
>> osgExit(); do not work either, I'm out of ideas.
>> The design of UnitTest++ that simply links all tests together is a
>> problem here...
>> Please don't postpone a solution to this to the future, right now it
>> would not hurt if we had to change the unit test framework (not that I
>> would want to).
>>     
If we can limit the number of aspects that a test can use to a fixed 
number (like 2 or 3) I don't think it's a big deal. If it works with 3 
it should work with more.

    Dirk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to