Definition at line 22 of file mainCoreTest.cpp. References Impala::Core::Array::ArraySystem::CheckMemoryUsageSinceMark(), ILOG_INFO, ILOG_VAR, Impala::Core::Array::ArraySystem::Instance(), and Impala::Core::Array::ArraySystem::MarkMemoryUsage(). Referenced by mainCoreTest(). 00023 { 00024 ILOG_VAR(Samples.DoTestSuite); 00025 ILOG_INFO(testSuite << "..."); 00026 00027 // Todo : check memory usage and speed 00028 bool result = true; 00029 for (; *testList; testList++) 00030 { 00031 TestBase* test = *testList; 00032 ArraySystem& aSys = ArraySystem::Instance(); 00033 aSys.MarkMemoryUsage(false); 00034 test->Run(); 00035 aSys.CheckMemoryUsageSinceMark(false); 00036 if (!test->Result()) 00037 { 00038 ILOG_INFO("Test " << test->GetNr() << " " << test->Name() 00039 << " failed"); 00040 test->Report(std::cout); 00041 result = false; 00042 } 00043 } 00044 ILOG_INFO(testSuite << (result ? " OK" : " FAILED")); 00045 return result ? 0 : 1; 00046 }
Here is the call graph for this function:
|