From ae7ef210147c4576b7162304f3534729fb5d1925 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 12 Dec 2023 18:50:57 +0100 Subject: [PATCH] Fix attach nOS-V RT test The nosv_attach() function no longer needs a the type argument. --- test/rt/nosv/attach.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/rt/nosv/attach.c b/test/rt/nosv/attach.c index 755f4c1..2731247 100644 --- a/test/rt/nosv/attach.c +++ b/test/rt/nosv/attach.c @@ -12,14 +12,8 @@ main(void) { nosv_init(); - nosv_task_type_t type; - if (nosv_type_init(&type, NULL, NULL, NULL, "adopted", NULL, - NULL, NOSV_TYPE_INIT_EXTERNAL) - != 0) - die("nosv_type_init failed"); - nosv_task_t task; - if (nosv_attach(&task, type, 0, NULL, 0) != 0) + if (nosv_attach(&task, NULL, NULL, 0) != 0) die("nosv_attach failed"); sleep_us(100); @@ -27,9 +21,6 @@ main(void) if (nosv_detach(0) != 0) die("nosv_detach failed"); - if (nosv_type_destroy(type, 0) != 0) - die("nosv_type_destroy failed"); - if (nosv_shutdown() != 0) die("nosv_shutdown failed");