From 1a67fa40d434379f161ae3eacc92ff3df1ea26b9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Sep 2022 13:16:53 +0200 Subject: [PATCH] Add taskfor test --- test/rt/nanos6/CMakeLists.txt | 1 + test/rt/nanos6/taskfor.c | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/rt/nanos6/taskfor.c diff --git a/test/rt/nanos6/CMakeLists.txt b/test/rt/nanos6/CMakeLists.txt index 9d87d04..9cbbf14 100644 --- a/test/rt/nanos6/CMakeLists.txt +++ b/test/rt/nanos6/CMakeLists.txt @@ -17,3 +17,4 @@ nanos6_rt_test(nested-task.c) nanos6_rt_test(several-tasks.c) nanos6_rt_test(sched-add.c) nanos6_rt_test(if0.c) +nanos6_rt_test(taskfor.c) diff --git a/test/rt/nanos6/taskfor.c b/test/rt/nanos6/taskfor.c new file mode 100644 index 0000000..4876e9e --- /dev/null +++ b/test/rt/nanos6/taskfor.c @@ -0,0 +1,11 @@ +#define _GNU_SOURCE +#include + +int main(void) +{ + #pragma oss task for + for(int i = 0; i < 1024; i++) + usleep(1000); + + return 0; +}