Skip to content

Commit

Permalink
validation: add calls to odp_schedule_config()
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
  • Loading branch information
Dmitry Eremin-Solenikov authored and muvarov committed Nov 29, 2018
1 parent ec17d09 commit dc6ce4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/common/odp_cunit_common.c
Expand Up @@ -98,6 +98,10 @@ static int tests_global_init(odp_instance_t *inst)
fprintf(stderr, "error: odp_init_local() failed.\n");
return -1;
}
if (0 != odp_schedule_config(NULL)) {
fprintf(stderr, "error: odp_schedule_config(NULL) failed.\n");
return -1;
}

return 0;
}
Expand Down
3 changes: 3 additions & 0 deletions test/validation/api/timer/timer.c
Expand Up @@ -92,6 +92,9 @@ static int timer_global_init(odp_instance_t *inst)
global_mem = odp_shm_addr(global_shm);
memset(global_mem, 0, sizeof(global_shared_mem_t));

/* Configure scheduler */
odp_schedule_config(NULL);

return 0;
}

Expand Down

0 comments on commit dc6ce4e

Please sign in to comment.