Added check for -t command line parameter to do lock-thread test.
Changed ending chars of some lines from LF to CR-LF to be consistent. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@712 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
1ae9a874d5
commit
d04a1b1f76
1 changed files with 19 additions and 3 deletions
|
@ -1007,12 +1007,21 @@ struct Foo
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int main( unsigned int , const char * [] )
|
|
||||||
|
int main( unsigned int argc, const char * argv[] )
|
||||||
{
|
{
|
||||||
// injected friends test
|
// injected friends test
|
||||||
Loki::SmartPtr<Foo, Loki::COMRefCounted> sp;
|
Loki::SmartPtr<Foo, Loki::COMRefCounted> sp;
|
||||||
|
|
||||||
Foo* p = Loki::GetImpl (sp); (void) p;
|
Foo* p = Loki::GetImpl (sp); (void) p;
|
||||||
|
|
||||||
|
bool doThreadTest = false;
|
||||||
|
for ( unsigned int ii = 1; ii < argc; ++ii )
|
||||||
|
{
|
||||||
|
if ( ::strcmp( argv[ii], "-t" ) == 0 )
|
||||||
|
doThreadTest = true;
|
||||||
|
}
|
||||||
|
|
||||||
DoRefLinkTests();
|
DoRefLinkTests();
|
||||||
DoStrongRefCountTests();
|
DoStrongRefCountTests();
|
||||||
DoStrongReleaseTests();
|
DoStrongReleaseTests();
|
||||||
|
@ -1034,8 +1043,11 @@ int main( unsigned int , const char * [] )
|
||||||
DoConstConversionTests();
|
DoConstConversionTests();
|
||||||
DoOwnershipConversionTests();
|
DoOwnershipConversionTests();
|
||||||
DoInheritanceConversionTests();
|
DoInheritanceConversionTests();
|
||||||
|
|
||||||
DoLockedPtrTest();
|
if ( doThreadTest )
|
||||||
|
{
|
||||||
|
DoLockedPtrTest();
|
||||||
|
}
|
||||||
|
|
||||||
// Check that nothing was leaked.
|
// Check that nothing was leaked.
|
||||||
assert( BaseClass::AllDestroyed() );
|
assert( BaseClass::AllDestroyed() );
|
||||||
|
@ -1051,6 +1063,10 @@ int main( unsigned int , const char * [] )
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.11 2006/10/13 23:59:42 rich_sposato
|
||||||
|
// Added check for -t command line parameter to do lock-thread test.
|
||||||
|
// Changed ending chars of some lines from LF to CR-LF to be consistent.
|
||||||
|
//
|
||||||
// Revision 1.10 2006/10/11 11:17:53 syntheticpp
|
// Revision 1.10 2006/10/11 11:17:53 syntheticpp
|
||||||
// test injected friends. Thanks to Sigoure Benoit
|
// test injected friends. Thanks to Sigoure Benoit
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue