Add taskfor test
This commit is contained in:
parent
0fea805b44
commit
1a67fa40d4
@ -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)
|
||||
|
11
test/rt/nanos6/taskfor.c
Normal file
11
test/rt/nanos6/taskfor.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user