aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-08-11 18:56:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-11 18:56:43 +0000
commita6a12a7804402273e193074a58162cc0b3890812 (patch)
tree0c9203a5a50a8ffcde795c98cf00a8fc2fbfceb1 /tests
parent8beb0c34da46a5146a2de8256db8bb42febb283c (diff)
parent0fdcdd0067af88e7deef73070d0861ceb9f53c37 (diff)
downloadandroid_bionic-a6a12a7804402273e193074a58162cc0b3890812.tar.gz
android_bionic-a6a12a7804402273e193074a58162cc0b3890812.tar.bz2
android_bionic-a6a12a7804402273e193074a58162cc0b3890812.zip
am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
* commit '0fdcdd0067af88e7deef73070d0861ceb9f53c37': Fix flaky test time.timer_settime_0.
Diffstat (limited to 'tests')
-rw-r--r--tests/time_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/time_test.cpp b/tests/time_test.cpp
index 90de8d804..0ea90a86b 100644
--- a/tests/time_test.cpp
+++ b/tests/time_test.cpp
@@ -296,8 +296,8 @@ TEST(time, timer_settime_0) {
Counter counter(Counter::CountAndDisarmNotifyFunction);
ASSERT_EQ(0, counter.Value());
- counter.SetTime(0, 1, 1, 0);
- usleep(500000);
+ counter.SetTime(0, 500000000, 1, 0);
+ sleep(1);
// The count should just be 1 because we disarmed the timer the first time it fired.
ASSERT_EQ(1, counter.Value());