Add Nanos6 rt test with several tasks

This commit is contained in:
Rodrigo Arias 2022-09-08 13:41:52 +02:00
parent 008ba5a8ef
commit cc1f5d769f
2 changed files with 15 additions and 0 deletions

View File

@ -8,3 +8,4 @@ endfunction()
nanos6_rt_test(simple-task.c) nanos6_rt_test(simple-task.c)
nanos6_rt_test(nested-task.c) nanos6_rt_test(nested-task.c)
nanos6_rt_test(several-tasks.c)

View File

@ -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;
}