Skip to content

Commit

Permalink
Fixes #347, replace task_1_work with correct variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Mar 27, 2020
1 parent 2284a6f commit 07cd2a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/bin-sem-flush-test/bin-sem-flush-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ void BinSemFlushCheck(void)

/* At first, No task should have done any work yet (all blocked) */
UtAssert_True(task_1_work == 0, "Task 1 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_2_work == 0, "Task 2 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_3_work == 0, "Task 3 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_2_work == 0, "Task 2 work = %u",(unsigned int)task_2_work);
UtAssert_True(task_3_work == 0, "Task 3 work = %u",(unsigned int)task_3_work);

status = OS_BinSemFlush(bin_sem_id);
UtAssert_True(status == OS_SUCCESS, "BinSem1 flush Rc=%d", (int)status);
Expand All @@ -239,8 +239,8 @@ void BinSemFlushCheck(void)
OS_TaskDelay(4000);

UtAssert_True(task_1_work != 0, "Task 1 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_2_work != 0, "Task 2 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_3_work != 0, "Task 3 work = %u",(unsigned int)task_1_work);
UtAssert_True(task_2_work != 0, "Task 2 work = %u",(unsigned int)task_2_work);
UtAssert_True(task_3_work != 0, "Task 3 work = %u",(unsigned int)task_3_work);

UtAssert_True(task_1_failures == 0, "Task 1 failures = %u",(unsigned int)task_1_failures);
UtAssert_True(task_2_failures == 0, "Task 2 failures = %u",(unsigned int)task_2_failures);
Expand Down

0 comments on commit 07cd2a3

Please sign in to comment.