Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-core: Commit

system/core


Commit MetaInfo

Revisionac9e2af1b62a67abe7be5805afd18dd42e2fa194 (tree)
Time2019-07-09 02:03:40
AuthorXu YiPing <xuyiping@hisi...>
CommiterTom Cherry

Log Message

Avoid get same timestamps in log testcase

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

Change Summary

Incremental Difference

--- a/logd/tests/logd_test.cpp
+++ b/logd/tests/logd_test.cpp
@@ -952,7 +952,7 @@ static inline uint32_t get4LE(const char* src) {
952952 void __android_log_btwrite_multiple__helper(int count) {
953953 #ifdef __ANDROID__
954954 log_time ts(CLOCK_MONOTONIC);
955-
955+ usleep(100);
956956 log_time ts1(CLOCK_MONOTONIC);
957957
958958 // We fork to create a unique pid for the submitted log messages
Show on old repository browser