forked from cory/tildefriends
libuv 1.45.0, #include cleanup, probably something else.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4308 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
13
deps/libuv/test/test-hrtime.c
vendored
13
deps/libuv/test/test-hrtime.c
vendored
@ -50,3 +50,16 @@ TEST_IMPL(hrtime) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
TEST_IMPL(clock_gettime) {
|
||||
uv_timespec64_t t;
|
||||
|
||||
ASSERT_EQ(UV_EINVAL, uv_clock_gettime(1337, &t));
|
||||
ASSERT_EQ(UV_EFAULT, uv_clock_gettime(1337, NULL));
|
||||
ASSERT_EQ(0, uv_clock_gettime(UV_CLOCK_MONOTONIC, &t));
|
||||
ASSERT_EQ(0, uv_clock_gettime(UV_CLOCK_REALTIME, &t));
|
||||
ASSERT_GT(1682500000000ll, t.tv_sec); /* 2023-04-26T09:06:40.000Z */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user