mirror of https://github.com/ARMmbed/mbed-os.git
Tweak equeue chain tests
Changed the order of destroying queues because it is needed to destroy queues in specified order when they are chained.pull/11491/head
parent
d0686fd30b
commit
dc5b9fba09
|
@ -742,8 +742,8 @@ static void test_equeue_chain()
|
|||
TEST_ASSERT_EQUAL_UINT8(3, touched1);
|
||||
TEST_ASSERT_EQUAL_UINT8(3, touched2);
|
||||
|
||||
equeue_destroy(&q1);
|
||||
equeue_destroy(&q2);
|
||||
equeue_destroy(&q1);
|
||||
}
|
||||
|
||||
/** Test that unchaining equeues makes them work on their own.
|
||||
|
|
|
@ -765,8 +765,8 @@ TEST_F(TestEqueue, test_equeue_chain)
|
|||
EXPECT_EQ(3, touched1);
|
||||
EXPECT_EQ(3, touched2);
|
||||
|
||||
equeue_destroy(&q1);
|
||||
equeue_destroy(&q2);
|
||||
equeue_destroy(&q1);
|
||||
}
|
||||
|
||||
/** Test that unchaining equeues makes them work on their own.
|
||||
|
|
|
@ -606,8 +606,8 @@ void chain_test(void)
|
|||
|
||||
test_assert(touched == 6);
|
||||
|
||||
equeue_destroy(&q1);
|
||||
equeue_destroy(&q2);
|
||||
equeue_destroy(&q1);
|
||||
}
|
||||
|
||||
void unchain_test(void)
|
||||
|
|
Loading…
Reference in New Issue