summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-07 17:52:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-07 17:52:33 +0200
commit9c0890f7ae1ca67368007c2293e349d05f1acc92 (patch)
tree06c7389eda7749b631a73846ac804326a2af3221
parent6280af527b8e08d18d22ead95966a1f9c4081907 (diff)
validation: Use unprotected chain directivesqual-24
-rw-r--r--testsuites/validation/tr-model-chains-api-0.c6
-rw-r--r--testsuites/validation/tr-model-chains-api-1.c6
-rw-r--r--testsuites/validation/tr-model-chains-api.c2
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 )