Ticket #32900: Message_Queue_Test.diff
File Message_Queue_Test.diff, 1001 bytes (added by jh@…, 13 years ago) |
---|
-
Message_Queue_Test.
old new 118 118 // correct. 119 119 // Also, to be sure there's not just 1 producer and 1 consumer pinging 120 120 // back and forth, make the producers randomly delay between blocks. 121 ACE_OS::srand (( u_int)ACE_Thread::self ());121 ACE_OS::srand ((long)ACE_Thread::self ()); 122 122 int multiple = ACE_OS::rand () % 10; 123 123 int delay_ms = (ACE_OS::rand () % 10) / 2; 124 124 // The delay usually causes the test to time out in the automated … … 208 208 // a calculated number of blocks then stop; the test checker will determine 209 209 // if the number consumed plus the number remaining is correct for the 210 210 // number produced. 211 ACE_OS::srand (( u_int)ACE_Thread::self ());211 ACE_OS::srand ((long)ACE_Thread::self ()); 212 212 int multiple = ACE_OS::rand () % 10; 213 213 int delay_ms = ACE_OS::rand () % 10; 214 214 // The delay usually causes the test to time out in the automated