From cd2e949613d1ec2747fe8777230c4acd31851c6d Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Sep 2022 13:17:38 +0200 Subject: [PATCH] Fix nested-tasks emu test --- test/emu/nanos6/nested-tasks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/emu/nanos6/nested-tasks.c b/test/emu/nanos6/nested-tasks.c index 7b49a3b..6621f3f 100644 --- a/test/emu/nanos6/nested-tasks.c +++ b/test/emu/nanos6/nested-tasks.c @@ -30,13 +30,17 @@ main(void) /* Create and run the tasks, one nested into another */ for(int i = 0; i < ntasks; i++) { + instr_nanos6_handle_task_enter(); instr_nanos6_task_create_and_execute(i + 1, typeid); usleep(500); } /* End the tasks in the opposite order */ for(int i = ntasks - 1; i >= 0; i--) + { instr_nanos6_task_end(i + 1); + instr_nanos6_handle_task_exit(); + } instr_end();