소스 검색

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

Cyril Roelandt 14 년 전
부모
커밋
5d9fabcd78
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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