Bläddra i källkod

Replace sleep(x) by sleep(x*1000000), for sleep() is not available on Windows.

Cyril Roelandt 13 år sedan
förälder
incheckning
5d9fabcd78
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      tests/sched_policies/execute_all_tasks.c
  2. 1 1
      tests/sched_policies/simple_deps.c

+ 1 - 1
tests/sched_policies/execute_all_tasks.c

@@ -60,7 +60,7 @@ dummy(void *buffers[], void *args)
 {
 	(void) buffers;
 	(void) args;
-	sleep(1);
+	usleep(1000000);
 }
 
 static int

+ 1 - 1
tests/sched_policies/simple_deps.c

@@ -32,7 +32,7 @@ dummy(void *buffers[], void *args)
 {
 	(void) buffers;
 	(void) args;
-	sleep(1);
+	usleep(1000000);
 }
 
 static int