commit | ef7696cd4e19d2e20e34825fddef0cc9e88d6e27 | [log] [tgz] |
---|---|---|
author | Jordan Jozwiak <jjoz@google.com> | Thu Mar 26 14:09:55 2020 -0700 |
committer | Jordan Jozwiak <jjoz@google.com> | Fri Mar 27 11:17:11 2020 -0700 |
tree | c188d3a8cb6aee4faca016bd69a733f56ecf2593 | |
parent | cef071965364337352e2c443aa490ecb845cea6a [diff] |
Fix test flakiness by using real context createCar() sometimes causes CarService to crash and thereby crashing the test process when a mock context is used. Using the real context fixes this issue. Bug: 152097574 Test: Tested 10 times on the cf emulator $ lunch lunch cf_x86_auto-userdebug $ repo sync -j16 -cq && make installclean && m -j64 $ launch_cvd $ for i in {0..10}; do atest -s 127.0.0.1:6520 ExperimentalCarServiceTests -- --abi x86; done Change-Id: Ide69a3a6977ba383be206afca52a603a8d956114
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.