diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-06 15:15:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-07 07:44:07 +0200 |
commit | 9f727f937965ee3e7bd07c5af5ee48aafa59eaf8 (patch) | |
tree | ba0f5939470b4bd735b1e0d4277042ea0fa6d397 /testsuites/validation/tc-signal-send.c | |
parent | Check the alignment in posix_memalign() earlier (diff) | |
download | rtems-9f727f937965ee3e7bd07c5af5ee48aafa59eaf8.tar.bz2 |
validation: Fix handling of N/A pre-conditions
In the action requirements, some pre-conditions are not applicable
depending on the state of other pre-conditions. There is no particular
order in the pre-conditions, so we have to check the N/A status
individually.
Diffstat (limited to '')
-rw-r--r-- | testsuites/validation/tc-signal-send.c | 53 |
1 files changed, 3 insertions, 50 deletions
diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c index 1f5df24ffb..2359855973 100644 --- a/testsuites/validation/tc-signal-send.c +++ b/testsuites/validation/tc-signal-send.c @@ -812,7 +812,6 @@ static inline RtemsSignalReqSend_Entry RtemsSignalReqSend_GetEntry( T_TEST_CASE_FIXTURE( RtemsSignalReqSend, &RtemsSignalReqSend_Fixture ) { RtemsSignalReqSend_Context *ctx; - RtemsSignalReqSend_Entry entry; size_t index; ctx = T_fixture_context(); @@ -824,75 +823,30 @@ T_TEST_CASE_FIXTURE( RtemsSignalReqSend, &RtemsSignalReqSend_Fixture ) ctx->pcs[ 0 ] < RtemsSignalReqSend_Pre_Task_NA; ++ctx->pcs[ 0 ] ) { - entry = RtemsSignalReqSend_GetEntry( index ); - - if ( entry.Pre_Task_NA ) { - ctx->pcs[ 0 ] = RtemsSignalReqSend_Pre_Task_NA; - index += ( RtemsSignalReqSend_Pre_Task_NA - 1 ) - * RtemsSignalReqSend_Pre_Set_NA - * RtemsSignalReqSend_Pre_Handler_NA - * RtemsSignalReqSend_Pre_ASR_NA - * RtemsSignalReqSend_Pre_Nested_NA; - } - for ( ctx->pcs[ 1 ] = RtemsSignalReqSend_Pre_Set_Zero; ctx->pcs[ 1 ] < RtemsSignalReqSend_Pre_Set_NA; ++ctx->pcs[ 1 ] ) { - entry = RtemsSignalReqSend_GetEntry( index ); - - if ( entry.Pre_Set_NA ) { - ctx->pcs[ 1 ] = RtemsSignalReqSend_Pre_Set_NA; - index += ( RtemsSignalReqSend_Pre_Set_NA - 1 ) - * RtemsSignalReqSend_Pre_Handler_NA - * RtemsSignalReqSend_Pre_ASR_NA - * RtemsSignalReqSend_Pre_Nested_NA; - } - for ( ctx->pcs[ 2 ] = RtemsSignalReqSend_Pre_Handler_Invalid; ctx->pcs[ 2 ] < RtemsSignalReqSend_Pre_Handler_NA; ++ctx->pcs[ 2 ] ) { - entry = RtemsSignalReqSend_GetEntry( index ); - - if ( entry.Pre_Handler_NA ) { - ctx->pcs[ 2 ] = RtemsSignalReqSend_Pre_Handler_NA; - index += ( RtemsSignalReqSend_Pre_Handler_NA - 1 ) - * RtemsSignalReqSend_Pre_ASR_NA - * RtemsSignalReqSend_Pre_Nested_NA; - } - for ( ctx->pcs[ 3 ] = RtemsSignalReqSend_Pre_ASR_Enabled; ctx->pcs[ 3 ] < RtemsSignalReqSend_Pre_ASR_NA; ++ctx->pcs[ 3 ] ) { - entry = RtemsSignalReqSend_GetEntry( index ); - - if ( entry.Pre_ASR_NA ) { - ctx->pcs[ 3 ] = RtemsSignalReqSend_Pre_ASR_NA; - index += ( RtemsSignalReqSend_Pre_ASR_NA - 1 ) - * RtemsSignalReqSend_Pre_Nested_NA; - } - for ( ctx->pcs[ 4 ] = RtemsSignalReqSend_Pre_Nested_Yes; ctx->pcs[ 4 ] < RtemsSignalReqSend_Pre_Nested_NA; ++ctx->pcs[ 4 ] ) { - entry = RtemsSignalReqSend_GetEntry( index ); - - if ( entry.Pre_Nested_NA ) { - ctx->pcs[ 4 ] = RtemsSignalReqSend_Pre_Nested_NA; - index += ( RtemsSignalReqSend_Pre_Nested_NA - 1 ); - } + RtemsSignalReqSend_Entry entry; - if ( entry.Skip ) { - ++index; - continue; - } + entry = RtemsSignalReqSend_GetEntry( index ); + ++index; RtemsSignalReqSend_Prepare( ctx ); RtemsSignalReqSend_Pre_Task_Prepare( ctx, ctx->pcs[ 0 ] ); @@ -907,7 +861,6 @@ T_TEST_CASE_FIXTURE( RtemsSignalReqSend, &RtemsSignalReqSend_Fixture ) ctx, entry.Post_Recursive ); - ++index; } } } |