Skip to content
Snippets Groups Projects
Commit 99fda2fc authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Fix some compile warnings

parent de560188
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <tests/tap/basic.h>
......
......@@ -200,16 +200,16 @@ int main(int argc, char *argv[])
/* Test 8: Repurpose single thread. */
tv.tv_sec = 0;
tv.tv_usec = 4000 + rand() % 1000; // 4-5ms
diag("waiting for %dus to let thread do some work ...",
(long)tv.tv_usec);
diag("waiting for %ldus to let thread do some work ...",
tv.tv_usec);
select(0, 0, 0, 0, &tv);
ok(dt_test_repurpose(unit, 0), "dthreads: repurpose on-the-fly");
/* Test 9: Cancel blocking thread. */
tv.tv_sec = 0;
tv.tv_usec = (250 + rand() % 500) * 1000; // 250-750ms
diag("waiting for %dms to let thread pretend blocking I/O ...",
(long)(tv.tv_usec / 1000));
diag("waiting for %ldms to let thread pretend blocking I/O ...",
(tv.tv_usec / 1000));
select(0, 0, 0, 0, &tv);
ok(dt_test_cancel(unit, 0), "dthreads: cancel blocking thread");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment