diff options
author | Alessio Balsini <balsini@google.com> | 2020-01-29 14:02:25 +0000 |
---|---|---|
committer | Alessio Balsini <balsini@google.com> | 2020-01-29 18:24:50 +0000 |
commit | 153ccacfb6838441450c88dedc527bc9d199f4d0 (patch) | |
tree | 5fc84784dfd4a6396204be7526c50a9bd60af90f /libcutils/trace-dev.cpp | |
parent | 5dd50b2b8424a8e84f203072056ecd7c766b8e06 (diff) |
Creating logical and snapshot partitions uses timeout in tests
CreateLogicalAndSnapshotPartition is used in first-stage init and by
default never blocks (thanks to a timeout set to 0). This causes some
libsnapshot tests to fail, because snapshot devices may be accessed
before there actual creation is complete.
Fix by introducing a timeout_ms argument, set to 0 if unspecified.
Test: libsnapshot_test
Bug: 142513589
Change-Id: I5e23adaaf6df8603df501b9a25fdd1e9d8c15252
Signed-off-by: Alessio Balsini <balsini@google.com>
Diffstat (limited to 'libcutils/trace-dev.cpp')
0 files changed, 0 insertions, 0 deletions