commit | e7a9691162cde34c807589de1e4e0fbe20a2254e | [log] [tgz] |
---|---|---|
author | Ayush Jain <ayushjain@google.com> | Thu Jun 22 17:57:51 2023 |
committer | Ayush Jain <ayushjain@google.com> | Fri Jun 23 23:04:27 2023 |
tree | 33cc664ac9cd6d06be59ebbc724843709e77afd9 | |
parent | 56dec1732b20712a3f8f3a6a26cf4faf0110e1af [diff] |
Flush log files in test before checking contents. 1) Flush the log files to storage by calling sync_all() on them, after the packets have been logged and before the log files are verified. 2) The tests wait on the flush() operation to complete (using a Channel for synchronization), as the flush happens in a different thread (LogWriterActor). Bug: 287161361 Test: atest libuwb_core_tests --iterations=500 Change-Id: Ife5967167e72bbc79529148d953080c00376713e