Add taskfor test

This commit is contained in:
Rodrigo Arias 2022-09-21 13:16:53 +02:00
parent 0fea805b44
commit 1a67fa40d4
2 changed files with 12 additions and 0 deletions

View File

@ -17,3 +17,4 @@ nanos6_rt_test(nested-task.c)
nanos6_rt_test(several-tasks.c) nanos6_rt_test(several-tasks.c)
nanos6_rt_test(sched-add.c) nanos6_rt_test(sched-add.c)
nanos6_rt_test(if0.c) nanos6_rt_test(if0.c)
nanos6_rt_test(taskfor.c)

11
test/rt/nanos6/taskfor.c Normal file
View File

@ -0,0 +1,11 @@
#define _GNU_SOURCE
#include <unistd.h>
int main(void)
{
#pragma oss task for
for(int i = 0; i < 1024; i++)
usleep(1000);
return 0;
}