commit | 04303f5a8ab9a992f3671d46b6ee2171582cbd61 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Sep 18 16:11:59 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Sep 19 17:37:06 2014 -0700 |
tree | 98d3997d33e93eeb91a2c2f331b57f35c180cbb2 | |
parent | adc01348ee51a4ad678b1c277f85cbbed5c2e728 [diff] [blame] |
Add semaphore tests, fix sem_destroy. Bug: https://code.google.com/p/android/issues/detail?id=76088 Change-Id: I4a0561b23e90312384d40a1c804ca64ee98f4066
diff --git a/tests/time_test.cpp b/tests/time_test.cpp index c9ead8d..c631b6a 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp
@@ -26,6 +26,8 @@ #include "ScopedSignalHandler.h" +#include "private/bionic_constants.h" + TEST(time, gmtime) { time_t t = 0; tm* broken_down = gmtime(&t); @@ -395,7 +397,7 @@ ts2.tv_nsec -= ts1.tv_nsec; if (ts2.tv_nsec < 0) { --ts2.tv_sec; - ts2.tv_nsec += 1000000000; + ts2.tv_nsec += NS_PER_S; } // Should be less than (a very generous, to try to avoid flakiness) 1000000ns.