aboutsummaryrefslogtreecommitdiff
path: root/tftf
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2019-11-13 07:53:48 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-11-13 07:53:48 +0000
commita78c8203e8ce7b901c13ae9fb25d8863c1bcd5bc (patch)
tree020a08e5301ef72cbad7a68b00304921083b2911 /tftf
parent891a3dd13b63ebf3a290a13f6c0026eb192da953 (diff)
parent2cb7c521285bc1d0f4d7c6841a6ad9b0823d19e0 (diff)
downloadtf-a-tests-a78c8203e8ce7b901c13ae9fb25d8863c1bcd5bc.tar.gz
Merge "`requested_irq_received` must be initialized for all tests"
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;