From cc1f5d769fe6a152f9a856d42240c951a4e0517b Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 8 Sep 2022 13:41:52 +0200 Subject: [PATCH] Add Nanos6 rt test with several tasks --- test/rt/nanos6/CMakeLists.txt | 1 + test/rt/nanos6/several-tasks.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/rt/nanos6/several-tasks.c diff --git a/test/rt/nanos6/CMakeLists.txt b/test/rt/nanos6/CMakeLists.txt index 6cae6d8..01eb5aa 100644 --- a/test/rt/nanos6/CMakeLists.txt +++ b/test/rt/nanos6/CMakeLists.txt @@ -8,3 +8,4 @@ endfunction() nanos6_rt_test(simple-task.c) nanos6_rt_test(nested-task.c) +nanos6_rt_test(several-tasks.c) diff --git a/test/rt/nanos6/several-tasks.c b/test/rt/nanos6/several-tasks.c new file mode 100644 index 0000000..6afae49 --- /dev/null +++ b/test/rt/nanos6/several-tasks.c @@ -0,0 +1,14 @@ +int main(void) +{ + for(int i = 0; i < 10000; i++) + { + #pragma oss task + { + for(volatile long j = 0; j < 1000000L; j++) + { + } + } + } + #pragma oss taskwait + return 0; +}