From 6d20f0c5257164d8ec8127e3e55a1686b7dba8d1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Oct 2021 08:35:22 +0200 Subject: score: Add node to insert to Chain_Node_order This allows to use additional members of the nodes for comparision. Update #4534. --- testsuites/sptests/spchain/init.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/spchain/init.c b/testsuites/sptests/spchain/init.c index 51278d52f3..ceb4f07b72 100644 --- a/testsuites/sptests/spchain/init.c +++ b/testsuites/sptests/spchain/init.c @@ -426,8 +426,14 @@ static void test_chain_node_count(void) } } -static bool test_order( const void *left, const Chain_Node *right ) +static bool test_order( + const void *key, + const Chain_Node *left, + const Chain_Node *right +) { + rtems_test_assert( key == left ); + return (uintptr_t) left < (uintptr_t) right; } -- cgit v1.2.3