Skip to content

Commit 1644776

Browse files
committed
Fixes #347, replaces task_1_work with correct variable names
1 parent 2284a6f commit 1644776

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/bin-sem-flush-test/bin-sem-flush-test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ void BinSemFlushCheck(void)
226226

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

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

241241
UtAssert_True(task_1_work != 0, "Task 1 work = %u",(unsigned int)task_1_work);
242-
UtAssert_True(task_2_work != 0, "Task 2 work = %u",(unsigned int)task_1_work);
243-
UtAssert_True(task_3_work != 0, "Task 3 work = %u",(unsigned int)task_1_work);
242+
UtAssert_True(task_2_work != 0, "Task 2 work = %u",(unsigned int)task_2_work);
243+
UtAssert_True(task_3_work != 0, "Task 3 work = %u",(unsigned int)task_3_work);
244244

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

0 commit comments

Comments
 (0)