projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix timespec_from_nsec test for 32-bit time_t
[mesa.git]
/
src
/
util
/
tests
/
timespec
/
timespec_test.cpp
diff --git
a/src/util/tests/timespec/timespec_test.cpp
b/src/util/tests/timespec/timespec_test.cpp
index 4182af0771adeff7788e17aba977d000b75e9f03..5005506f9fd157c03412cce96cc8af1500035fa4 100644
(file)
--- a/
src/util/tests/timespec/timespec_test.cpp
+++ b/
src/util/tests/timespec/timespec_test.cpp
@@
-206,7
+206,7
@@
TEST(timespec_test, timespec_from_nsec)
timespec_from_nsec(&a, UINT64_MAX);
EXPECT_EQ(a.tv_nsec, UINT64_MAX % NSEC_PER_SEC);
- EXPECT_EQ(a.tv_sec,
UINT64_MAX / NSEC_PER_SEC
);
+ EXPECT_EQ(a.tv_sec,
(time_t)(UINT64_MAX / NSEC_PER_SEC)
);
}
TEST(timespec_test, timespec_from_usec)