Sfoglia il codice sorgente

Fix tests/sched_policies/execute_all_tasks.c so that it really tries all scheduling policies.

Cyril Roelandt 12 anni fa
parent
commit
2155373869
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      tests/sched_policies/execute_all_tasks.c

+ 6 - 1
tests/sched_policies/execute_all_tasks.c

@@ -67,7 +67,12 @@ static int
 run(struct starpu_sched_policy *p)
 {
 	int ret;
-	ret = starpu_init(NULL);
+	struct starpu_conf conf;
+
+	(void) starpu_conf_init(&conf);
+	conf.sched_policy = p;
+
+	ret = starpu_init(&conf);
 	if (ret == -ENODEV)
 		exit(STARPU_TEST_SKIPPED);