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
int_szyk 2019-09-16 13:35:28 +02:00
parent d0686fd30b
commit dc5b9fba09
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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)