aboutsummaryrefslogtreecommitdiff
path: root/tftf
diff options
context:
space:
mode:
authorDeepika Bhavnani <deepika.bhavnani@arm.com>2019-10-14 12:48:04 -0500
committerDeepika Bhavnani <deepika.bhavnani@arm.com>2019-10-14 12:48:04 -0500
commit2cb7c521285bc1d0f4d7c6841a6ad9b0823d19e0 (patch)
tree108656c2ca2165c93c802be3ef98cac2b18106eb /tftf
parent6f50bd61931ad36152b2a437622593dd11633eb1 (diff)
downloadtf-a-tests-2cb7c521285bc1d0f4d7c6841a6ad9b0823d19e0.tar.gz
`requested_irq_received` must be initialized for all tests
requested_irq_received is used to confirm if the CPU is woken by IRQ, it is set as part of `requested_irq_handler`. Default it should be cleared for all CPU's under test, un-intialized value resulted in random failure based on previous state of variable. Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com> Change-Id: Ia3af99a11f3297c2e8fc1ef52e7f18107e2fdfc8
Diffstat (limited to 'tftf')
-rw-r--r--tftf/tests/framework_validation_tests/test_timer_framework.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tftf/tests/framework_validation_tests/test_timer_framework.c b/tftf/tests/framework_validation_tests/test_timer_framework.c
index d7bd4f92..0bd2985f 100644
--- a/tftf/tests/framework_validation_tests/test_timer_framework.c
+++ b/tftf/tests/framework_validation_tests/test_timer_framework.c
@@ -203,8 +203,10 @@ test_result_t test_timer_target_power_down_cpu(void)
SKIP_TEST_IF_LESS_THAN_N_CPUS(2);
- for (unsigned int i = 0; i < PLATFORM_CORE_COUNT; i++)
+ for (unsigned int i = 0; i < PLATFORM_CORE_COUNT; i++) {
tftf_init_event(&cpu_ready[i]);
+ requested_irq_received[i] = 0;
+ }
if (!timer_step_value)
timer_step_value = tftf_get_timer_step_value();
@@ -346,8 +348,10 @@ test_result_t test_timer_target_multiple_same_interval(void)
SKIP_TEST_IF_LESS_THAN_N_CPUS(2);
- for (unsigned int i = 0; i < PLATFORM_CORE_COUNT; i++)
+ for (unsigned int i = 0; i < PLATFORM_CORE_COUNT; i++) {
tftf_init_event(&cpu_ready[i]);
+ requested_irq_received[i] = 0;
+ }
multiple_timer_count = 0;
all_cores_inside_test = 0;