Definition at line 58 of file testImageLoader.h. 00058 { 00059 int nulCount; 00060 for(int i=0; i < 1000; i++) { 00061 OGLIMAGE* img = mImageLoader->GetOglImageById(i); 00062 if(img->w == 0) nulCount ++; 00063 mImageLoader->WaitUntilDone(); 00064 BOOST_CHECK_EQUAL(img->w, i); 00065 } 00066 #ifdef USE_BOOST_THREADPOOL 00067 BOOST_CHECK_GT(nulCount, 0); 00068 #else 00069 BOOST_CHECK_EQUAL(nulCount, 0); 00070 #endif 00071 }
|