void Test::RunTests() { Test1(); Test2a(); Test2b(); Test3a(); Test3b(); Test4(); Test5(); Test6a(); Test6b(); Test7a(); Test7b(); Test8a(); Test8b(); Test9a(); Test9b(); Test10a(); Test10b(); Test11a(); Test11b(); Test12a(); Test12b(); Test13(); Test14(); Test15a(); Test15b(); Test16(); Test17(); Test18(); }
/* * Test2 * * Performs a series of two-thread tests as described below. * * All tests will exit() on any failure. * * Tests: * Test2a * Two thread test with thread T1 sending to thread T2. T1 sends NUM_MESSAGES * paced one each second. NUM_MESSAGES is less than MAX_QUEUE_SIZE. At the end * of the test, the number of sent messages is verified against the number of * received messages. Both sending and receiving are NON-BLOCKING. * * Test2b * Two thread test with thread T1 sending to thread T2. T1 sends MAX_QUEUE_SIZE * as a burst. At the end of the test, the number of sent messages is * verified against the number of received messages. Sending is performed * NON-BLOCKING, receive is BLOCKING. * * Test2c * Two thread test with thread T1 sending to thread T2. T1 sends 2*MAX_QUEUE_SIZE * as a burst. At the end of the test, the number of sent messages is * verified against the number of received messages. Both sending and receiving * are BLOCKING. * */ int main( int argc, char **argv ) { TEST_INTRO("Two Thread Testing"); Test2a(); Test2b(); Test2c(); TEST_CLOSING(); return 0; }