mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 12:34:48 +00:00
Fix random failure in test case threadx_event_flag_suspension_timeout_test.c (#246)
Depending on the starting time, thread 1 can run either 32 or 33 rounds.
This commit is contained in:
@@ -179,7 +179,8 @@ UINT status;
|
||||
tx_thread_sleep(63);
|
||||
|
||||
/* Check the run counters. */
|
||||
if ((thread_1_counter != 33) || (thread_2_counter != 13))
|
||||
if (((thread_1_counter != 32) && (thread_1_counter != 33)) || /* Depending on the starting time, thread 1 can run either 32 or 33 rounds. */
|
||||
(thread_2_counter != 13))
|
||||
{
|
||||
|
||||
/* Event flag error. */
|
||||
|
||||
Reference in New Issue
Block a user