From b5e70b90a728730ebfe16883467d3ebeaa9bdd00 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Wed, 14 Sep 2022 13:20:15 +0200 Subject: [PATCH] Reduce tasks in sched-add tests Also remove unused printf and follow style. --- test/rt/nanos6/sched-add.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/rt/nanos6/sched-add.c b/test/rt/nanos6/sched-add.c index 9fef44f..aae673d 100644 --- a/test/rt/nanos6/sched-add.c +++ b/test/rt/nanos6/sched-add.c @@ -9,12 +9,11 @@ #include #include #include -#include #include static int ncpus = -1; static long nruns = 3L; -static long ntasks = 10000L; +static long ntasks = 1000L; static atomic_int wait = 0; static void **handle; @@ -43,9 +42,8 @@ do_run(void) for(int t = 0; t < ntasks; t++) { - if (handle[t]) { + if(handle[t]) nanos6_unblock_task(handle[t]); - } } #pragma oss taskwait @@ -69,7 +67,6 @@ main(void) return -1; } - printf("%s,%s,%s,%s\n", "run", "ntasks", "time", "time_per_task_per_cpu"); for(int run = 0; run < nruns; run++) do_run();