diff -r c084286672be -r 15018f1726c7 persistentstorage/dbms/tdbms/t_dbstress.h --- a/persistentstorage/dbms/tdbms/t_dbstress.h Tue Jan 26 13:16:24 2010 +0200 +++ b/persistentstorage/dbms/tdbms/t_dbstress.h Fri Mar 19 10:00:55 2010 +0200 @@ -12,13 +12,8 @@ // // Description: // - -// MSVC++ up to 5.0 has problems with expanding inline functions -// This disables the mad warnings for the whole project -#if defined(NDEBUG) && defined(__VC32__) && _MSC_VER<=1100 -#pragma warning(disable : 4710) // function not expanded. MSVC 5.0 is stupid -#endif - +#ifndef T_DBSTRESS_H +#define T_DBSTRESS_H #include #include @@ -32,7 +27,7 @@ GLREF_C TInt Random(TInt aRange); GLREF_D TPtrC KTestDatabase,KTestDir,KLogFile; -GLREF_D RTest test; +GLREF_D RTest TheTest; GLREF_D TInt NewCount; GLREF_D TInt OldCount; GLREF_D TInt TransId; @@ -49,3 +44,13 @@ GLREF_D Timer RunTimer; +#undef TEST_STRING +#define TEST_STRING(s) _S(s) + +void Check1(TInt aValue, const TText* aFile, TInt aLine); +void Check2(TInt aValue, TInt aExpected, const TText* aFile, TInt aLine); + +#define TEST(arg) ::Check1((arg), TEST_STRING(__FILE__), __LINE__) +#define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, TEST_STRING(__FILE__), __LINE__) + +#endif// T_DBSTRESS_H