commit | 208fdd1963bfaa2a149e09a63fcf08b8c870e060 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jun 05 17:19:00 2020 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Jun 05 17:19:00 2020 -0700 |
tree | dbdbea330325ac046711be751857f162a5f585a6 | |
parent | 700f753c50971a573bfd84cf7d64483b94fcfe2c [diff] [blame] |
Trivial test for difftime(3). pirama made me do this. Test: treehugger Change-Id: I0cf4466e494d92c96802e763b99346f7517bf3d7
diff --git a/tests/time_test.cpp b/tests/time_test.cpp index 378b4ac..74d691d 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp
@@ -1005,3 +1005,7 @@ GTEST_SKIP() << "glibc doesn't have timespec_get until 2.21"; #endif } + +TEST(time, difftime) { + ASSERT_EQ(1.0, difftime(1, 0)); +}