aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-05-12 12:43:06 +0300
committerMatias Elo <matias.elo@nokia.com>2021-05-14 09:21:03 +0300
commit8ee42ff84ce5987c7b8c5f4cccb171ef976b0827 (patch)
treee13359c046a470851dfef032c9b431f6c78728ca
parent27b2ec29dd30b024d6775b5dcde4a4b446cea9fe (diff)
downloadodp-8ee42ff84ce5987c7b8c5f4cccb171ef976b0827.tar.gz
validation: scheduler: add check for max_flow_id default value
The default value for odp_schedule_config_t.max_flow_id should be zero. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
-rw-r--r--test/validation/api/scheduler/scheduler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c
index 8800350f2..30579abfc 100644
--- a/test/validation/api/scheduler/scheduler.c
+++ b/test/validation/api/scheduler/scheduler.c
@@ -145,10 +145,13 @@ static void scheduler_test_init(void)
odp_schedule_config_init(&default_config);
+ CU_ASSERT(default_config.max_flow_id == 0);
+
CU_ASSERT(default_config.sched_group.all);
CU_ASSERT(default_config.sched_group.control);
CU_ASSERT(default_config.sched_group.worker);
}
+
static void scheduler_test_capa(void)
{
odp_schedule_capability_t sched_capa;