diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-04-23 14:42:05 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2019-05-14 16:01:43 +0300 |
commit | 7d8f6cc52cadb748ef315525edaad26c948b31fe (patch) | |
tree | 177d3c3190c8a4557431edd422bde429e3e5f329 /test/validation/api/scheduler | |
parent | 13910403658b57e2d376d8f30e956223f91dfc1b (diff) |
validation: scheduler: fix groups test
Scheduler implementation could pre-schedule events to mygrp2 causing the
following check to fail.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Stanislaw Kardach <skardach@marvell.com>
Diffstat (limited to 'test/validation/api/scheduler')
-rw-r--r-- | test/validation/api/scheduler/scheduler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c index 7ad6acf48..ec2baa8ff 100644 --- a/test/validation/api/scheduler/scheduler.c +++ b/test/validation/api/scheduler/scheduler.c @@ -1,4 +1,5 @@ /* Copyright (c) 2014-2018, Linaro Limited + * Copyright (c) 2019, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause @@ -722,6 +723,10 @@ static void scheduler_test_groups(void) CU_ASSERT(rc == 0); CU_ASSERT(odp_thrmask_isset(&testmask, thr_id)); + /* Leave group 2 */ + rc = odp_schedule_group_leave(mygrp2, &mymask); + CU_ASSERT(rc == 0); + /* Now verify scheduler adherence to groups */ odp_pool_param_init(¶ms); params.buf.size = 100; |