Skip to content

Commit dc5b9fb

Browse files
committed
Tweak equeue chain tests
Changed the order of destroying queues because it is needed to destroy queues in specified order when they are chained.
1 parent d0686fd commit dc5b9fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

TESTS/events/equeue/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ static void test_equeue_chain()
742742
TEST_ASSERT_EQUAL_UINT8(3, touched1);
743743
TEST_ASSERT_EQUAL_UINT8(3, touched2);
744744

745-
equeue_destroy(&q1);
746745
equeue_destroy(&q2);
746+
equeue_destroy(&q1);
747747
}
748748

749749
/** Test that unchaining equeues makes them work on their own.

UNITTESTS/events/equeue/test_equeue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ TEST_F(TestEqueue, test_equeue_chain)
765765
EXPECT_EQ(3, touched1);
766766
EXPECT_EQ(3, touched2);
767767

768-
equeue_destroy(&q1);
769768
equeue_destroy(&q2);
769+
equeue_destroy(&q1);
770770
}
771771

772772
/** Test that unchaining equeues makes them work on their own.

events/source/tests/tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ void chain_test(void)
606606

607607
test_assert(touched == 6);
608608

609-
equeue_destroy(&q1);
610609
equeue_destroy(&q2);
610+
equeue_destroy(&q1);
611611
}
612612

613613
void unchain_test(void)

0 commit comments

Comments
 (0)