From 9c0890f7ae1ca67368007c2293e349d05f1acc92 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 7 Jun 2021 17:52:33 +0200 Subject: validation: Use unprotected chain directives --- testsuites/validation/tr-model-chains-api-0.c | 6 +++--- testsuites/validation/tr-model-chains-api-1.c | 6 +++--- testsuites/validation/tr-model-chains-api.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/testsuites/validation/tr-model-chains-api-0.c b/testsuites/validation/tr-model-chains-api-0.c index c991193e6a..0b6c50806f 100644 --- a/testsuites/validation/tr-model-chains-api-0.c +++ b/testsuites/validation/tr-model-chains-api-0.c @@ -68,7 +68,7 @@ static void TestSegment0( Context* ctx ) { T_eq_ptr( nptr, NULL ); T_log(T_NORMAL,"@@@ 0 CALL append 22 3"); memory[3].val = 22; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[3] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[3] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 22"); @@ -78,7 +78,7 @@ static void TestSegment0( Context* ctx ) { T_log(T_NORMAL,"@@@ 0 CALL append 21 6"); memory[6].val = 21; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[6] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[6] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 22"); @@ -89,7 +89,7 @@ static void TestSegment0( Context* ctx ) { T_log(T_NORMAL,"@@@ 0 CALL append 23 4"); memory[4].val = 23; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[4] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[4] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 22"); diff --git a/testsuites/validation/tr-model-chains-api-1.c b/testsuites/validation/tr-model-chains-api-1.c index 2c6642ac0d..45b910bcf6 100644 --- a/testsuites/validation/tr-model-chains-api-1.c +++ b/testsuites/validation/tr-model-chains-api-1.c @@ -68,7 +68,7 @@ static void TestSegment0( Context* ctx ) { T_eq_ptr( nptr, NULL ); T_log(T_NORMAL,"@@@ 0 CALL append 21 6"); memory[6].val = 21; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[6] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[6] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 21"); @@ -78,7 +78,7 @@ static void TestSegment0( Context* ctx ) { T_log(T_NORMAL,"@@@ 0 CALL append 22 3"); memory[3].val = 22; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[3] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[3] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 21"); @@ -105,7 +105,7 @@ static void TestSegment0( Context* ctx ) { T_log(T_NORMAL,"@@@ 0 END nptr"); T_log(T_NORMAL,"@@@ 0 CALL append 23 4"); memory[4].val = 23; - rtems_chain_append( &chain, (rtems_chain_node*)&memory[4] ); + rtems_chain_append_unprotected( &chain, (rtems_chain_node*)&memory[4] ); T_log(T_NORMAL,"@@@ 0 SEQ chain"); T_log(T_NORMAL,"@@@ 0 SCALAR _ 22"); diff --git a/testsuites/validation/tr-model-chains-api.c b/testsuites/validation/tr-model-chains-api.c index 20b2768574..09686ca21b 100644 --- a/testsuites/validation/tr-model-chains-api.c +++ b/testsuites/validation/tr-model-chains-api.c @@ -41,7 +41,7 @@ item* get_item( rtems_chain_control* control ) { - return (item*) rtems_chain_get( control ); + return (item*) rtems_chain_get_unprotected( control ); } void show_chain( rtems_chain_control *control, char *str ) -- cgit v1.2.3