Add Nanos6 rt test with several tasks
This commit is contained in:
parent
008ba5a8ef
commit
cc1f5d769f
@ -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)
|
||||||
|
14
test/rt/nanos6/several-tasks.c
Normal file
14
test/rt/nanos6/several-tasks.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user