Skip to content

Commit e0a0615

Browse files
committed
fix tests
1 parent f403623 commit e0a0615

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

TESTS/mbedmicro-rtos-mbed/mail/main.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,13 +464,13 @@ void test_mail_empty()
464464
{
465465
Mail<mail_t, 1> m;
466466

467-
mail_t *mail = m->alloc();
467+
mail_t *mail = m.alloc();
468468

469469
TEST_ASSERT_EQUAL(true, m.empty());
470470

471471
m.put(mail);
472472

473-
TEST_ASSERT_EQUAL(false, m.empty()));
473+
TEST_ASSERT_EQUAL(false, m.empty());
474474
}
475475

476476
/** Test mail empty
@@ -483,13 +483,13 @@ void test_mail_full()
483483
{
484484
Mail<mail_t, 1> m;
485485

486-
mail_t *mail = m->alloc();
486+
mail_t *mail = m.alloc();
487487

488488
TEST_ASSERT_EQUAL(false, m.full());
489489

490490
m.put(mail);
491491

492-
TEST_ASSERT_EQUAL(true, m.full()));
492+
TEST_ASSERT_EQUAL(true, m.full());
493493
}
494494

495495
utest::v1::status_t test_setup(const size_t number_of_cases)
@@ -512,7 +512,9 @@ Case cases[] = {
512512
Case("Test invalid message free", test_free_wrong),
513513
Case("Test message send/receive single thread and order", test_single_thread_order),
514514
Case("Test message send/receive multi-thread and per thread order", test_multi_thread_order),
515-
Case("Test message send/receive multi-thread, multi-Mail and per thread order", test_multi_thread_multi_mail_order)
515+
Case("Test message send/receive multi-thread, multi-Mail and per thread order", test_multi_thread_multi_mail_order),
516+
Case("Test mail empty", test_mail_empty),
517+
Case("Test mail full", test_mail_full)
516518
};
517519

518520
Specification specification(test_setup, cases);

TESTS/mbedmicro-rtos-mbed/queue/main.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,9 @@ void test_queue_empty()
290290

291291
TEST_ASSERT_EQUAL(true, q.empty());
292292

293-
stat = q.put((uint32_t*) TEST_UINT_MSG, TEST_TIMEOUT, 1);
293+
q.put((uint32_t*) TEST_UINT_MSG, TEST_TIMEOUT, 1);
294294

295-
TEST_ASSERT_EQUAL(osOK, stat);
296-
297-
TEST_ASSERT_EQUAL(false, q.empty()));
295+
TEST_ASSERT_EQUAL(false, q.empty());
298296
}
299297

300298
/** Test queue empty
@@ -309,11 +307,9 @@ void test_queue_full()
309307

310308
TEST_ASSERT_EQUAL(false, q.full());
311309

312-
stat = q.put((uint32_t*) TEST_UINT_MSG, TEST_TIMEOUT, 1);
313-
314-
TEST_ASSERT_EQUAL(osOK, stat);
310+
q.put((uint32_t*) TEST_UINT_MSG, TEST_TIMEOUT, 1);
315311

316-
TEST_ASSERT_EQUAL(true, q.full()));
312+
TEST_ASSERT_EQUAL(true, q.full());
317313
}
318314

319315
utest::v1::status_t test_setup(const size_t number_of_cases)

0 commit comments

Comments
 (0)