summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu YiPing <xuyiping@hisilicon.com>2019-06-19 16:38:33 +0800
committerTom Cherry <tomcherry@google.com>2019-07-08 10:03:40 -0700
commitac9e2af1b62a67abe7be5805afd18dd42e2fa194 (patch)
tree234fa7b3d82790b0fec20b84e5c1622d3216ad2d
parentbe4e6131d8a6b9aada031725e512459e808cfb46 (diff)
downloadcore-ac9e2af1b62a67abe7be5805afd18dd42e2fa194.tar.gz
Avoid get same timestamps in log testcaseandroid-cts-10.0_r2android10-dev
for arm64, userspace get time by vDSO, no syscall overhead. multiple_test_2 sometimes get 2 same timestamps now, then testcase fails. Bug: b/135555666 Test: ./CtsLogdTestCases64 --gtest_filter=*multiple_test* Merged-In: Ic8a0ab6f571df1487fe5fb4e5f07dc612af69001 Change-Id: I83f8beae168f397a347972c5e60de86d16c8f7c6
-rw-r--r--logd/tests/logd_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/tests/logd_test.cpp b/logd/tests/logd_test.cpp
index 447b06731..b6c33d7da 100644
--- a/logd/tests/logd_test.cpp
+++ b/logd/tests/logd_test.cpp
@@ -952,7 +952,7 @@ static inline uint32_t get4LE(const char* src) {
void __android_log_btwrite_multiple__helper(int count) {
#ifdef __ANDROID__
log_time ts(CLOCK_MONOTONIC);
-
+ usleep(100);
log_time ts1(CLOCK_MONOTONIC);
// We fork to create a unique pid for the submitted log messages