diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-27 08:35:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | 6d20f0c5257164d8ec8127e3e55a1686b7dba8d1 (patch) | |
tree | f6dc441d25e8f9141adc0b2cfc8ff05eda0d40a7 /testsuites/sptests | |
parent | score: Rework idle handling in SMP schedulers (diff) | |
download | rtems-6d20f0c5257164d8ec8127e3e55a1686b7dba8d1.tar.bz2 |
score: Add node to insert to Chain_Node_order
This allows to use additional members of the nodes for comparision.
Update #4534.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/spchain/init.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |