fuchsia: Use ZX_TIME_INFINITE instead of UINT64_MAX

In the future, Zircon's time types will change from unsigned to
signed. Use ZX_TIME_INFINITE instead of UINT64_MAX when
zx_nanosleep'ing.

See related Zircon bug ZX-2100.

Change-Id: I5eb139280c27ca817e1a489f04c860563c9b677c
Reviewed-on: https://chromium-review.googlesource.com/1123221
Commit-Queue: Nick Maniscalco <maniscalco@chromium.org>
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Nick Maniscalco 2018-07-02 13:22:13 -07:00 committed by Commit Bot
parent eb7d8a4cde
commit aabc485b64

View File

@ -18,6 +18,7 @@
#include <zircon/process.h>
#include <zircon/syscalls.h>
#include <zircon/syscalls/port.h>
#include <zircon/types.h>
#include "gtest/gtest.h"
#include "test/multiprocess_exec.h"
@ -103,7 +104,7 @@ void* SignalAndSleep(void* arg) {
zx_port_packet_t packet = {};
packet.type = ZX_PKT_TYPE_USER;
zx_port_queue(*reinterpret_cast<zx_handle_t*>(arg), &packet);
zx_nanosleep(UINT64_MAX);
zx_nanosleep(ZX_TIME_INFINITE);
return nullptr;
}