]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Switch the sleep function to UTIL_sleepMilli 781/head
authorStella Lau <laus@fb.com>
Mon, 7 Aug 2017 18:43:37 +0000 (11:43 -0700)
committerStella Lau <laus@fb.com>
Mon, 7 Aug 2017 18:49:13 +0000 (11:49 -0700)
tests/poolTests.c

index d5c37aee03cf4ca3abd11c31eb1afed868936d49..9e11281baf8e4fbb82557202eeed4ad15d1b54b8 100644 (file)
@@ -1,8 +1,8 @@
 #include "pool.h"
 #include "threading.h"
+#include "util.h"
 #include <stddef.h>
 #include <stdio.h>
-#include <unistd.h>
 
 #define ASSERT_TRUE(p)                                                         \
   do {                                                                         \
@@ -53,7 +53,7 @@ int testOrder(size_t numThreads, size_t queueSize) {
 
 void waitFn(void *opaque) {
   (void)opaque;
-  usleep(100);
+  UTIL_sleepMilli(1);
 }
 
 /* Tests for deadlock */