From: Stella Lau Date: Mon, 7 Aug 2017 18:43:37 +0000 (-0700) Subject: Switch the sleep function to UTIL_sleepMilli X-Git-Tag: v1.3.1^2~12^2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1abc2a3677c89bd300f96081b07e8c34e69aafd;p=thirdparty%2Fzstd.git Switch the sleep function to UTIL_sleepMilli --- diff --git a/tests/poolTests.c b/tests/poolTests.c index d5c37aee0..9e11281ba 100644 --- a/tests/poolTests.c +++ b/tests/poolTests.c @@ -1,8 +1,8 @@ #include "pool.h" #include "threading.h" +#include "util.h" #include #include -#include #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 */