diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-07 17:52:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-12 15:09:25 +0200 |
commit | b521b416587e5c7277e1cb28e37b71f4cd60e806 (patch) | |
tree | c59ea460cf54a65d19b526782bb35693624eced2 | |
parent | cbda48279eda314f765e53cbdffe570aa61b242e (diff) |
validation: Use unprotected chain directives
-rw-r--r-- | testsuites/validation/tr-model-chains-api-0.c | 6 | ||||
-rw-r--r-- | testsuites/validation/tr-model-chains-api-1.c | 6 | ||||
-rw-r--r-- | 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 ) |