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-08-31 07:13:55 +0200 |
commit | 7de368028816c2527a84ed464435bde0cf72ecbd (patch) | |
tree | 7fa50859f4496b333d99477ab63bc5274ba23288 | |
parent | 507d12ede552b68c9eaa9e0c251dff067018c0cb (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 ) |