]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/poll.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / tests / poll.c
index 49e4be65f38c6961f9c8d752f045cc323a08efb5..c72cf5db808dd5b802b02db81e79c92f399b220f 100644 (file)
@@ -10,7 +10,8 @@
 #include <stdint.h>
 #include <unistd.h>
 
-T_GLOBAL_META(T_META_NAMESPACE("xnu.poll"));
+T_GLOBAL_META(T_META_NAMESPACE("xnu.poll"),
+    T_META_RUN_CONCURRENTLY(true));
 
 #define SLEEP_TIME_SECS 1
 #define POLL_TIMEOUT_MS 1800
@@ -26,7 +27,7 @@ T_DECL(sleep_with_no_fds,
     "poll() called with no fds provided should act like sleep")
 {
        uint64_t begin_time, sleep_time, poll_time;
-       struct pollfd pfd = { 0 };
+       struct pollfd pfd = { .fd = 0, .events = 0, .revents = 0 };
 
        begin_time = mach_absolute_time();
        sleep(SLEEP_TIME_SECS);