diff options
-rw-r--r-- | spec/rtems/intr/req/get-affinity.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/rtems/intr/req/get-affinity.yml b/spec/rtems/intr/req/get-affinity.yml index bef498ea..08e8acb6 100644 --- a/spec/rtems/intr/req/get-affinity.yml +++ b/spec/rtems/intr/req/get-affinity.yml @@ -197,6 +197,9 @@ test-action: | ctx->vector = BSP_INTERRUPT_VECTOR_COUNT; } + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Warray-bounds" + CPU_FILL_S( sizeof( ctx->cpuset_obj ), ctx->cpuset_obj ); ctx->status = rtems_interrupt_get_affinity( @@ -215,6 +218,8 @@ test-action: | } T_true( CPU_EQUAL_S( sizeof( set ), ctx->cpuset_obj, set ) ); + + #pragma GCC diagnostic pop } test-brief: null test-cleanup: null @@ -290,6 +295,9 @@ test-support: | rtems_status_code sc; cpu_set_t set[ 2 ]; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Warray-bounds" + if ( attr->can_get_affinity ) { CPU_ZERO_S( sizeof( ctx->cpuset_obj ), ctx->cpuset_obj ); } else { @@ -311,6 +319,8 @@ test-support: | T_rsc( sc, RTEMS_UNSATISFIED ); T_true( CPU_EQUAL_S( sizeof( set ), ctx->cpuset_obj, set ) ); } + + #pragma GCC diagnostic pop } test-target: testsuites/validation/tc-intr-get-affinity.c test-teardown: null |