commit | 6d14bb36b24e56b8bb7cfd514c641e0a355d6b7e | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Tue Mar 09 14:11:05 2021 -0800 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Fri Mar 12 06:02:12 2021 +0000 |
tree | bb5c11548dbf220981d402ee8f2543d5ebc6b96a | |
parent | 2d1e8672907b20ed8b1b19b841cb6eefd48c4228 [diff] |
Fix coverage testing for resolv_*_test Bug: http://b/182009484 - Move resolv_unit_test to the tests/ subdir, so it can depend on libcrypto_static, which is visible to packages/modules/DnsResolver/tests but not packages/modules/Dnsresolver. - Have resolve_gold_test depend on libcrypto_static. If not, the tests depend on libcrypto.so for some LLVM coverage symbols, causing failure when run on builds where libcrypto.so is not instrumented for coverage. Test: Verify coverage-enabled tests don't have any undefined __llvm_* symbols. Change-Id: I0fd9fdae9e55b7ad8159456518922c6a1ef4fc30
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.