diff options
| author | 2024-11-15 10:59:23 -0800 | |
|---|---|---|
| committer | 2024-11-18 09:15:38 -0500 | |
| commit | 0b6b6f5328a21e88d05a9ef7688ff6c1ce2029bb (patch) | |
| tree | 83f00704f8493077526769346715af57fc7e9418 /libs/androidfw/misc.cpp | |
| parent | d51ffdf0c889c26ae193c6e44ce5f80675672c24 (diff) | |
Improve CommunalBackupHelperTest stability
Sometimes setUp() can fail, and tearDown() is still invoked, leading to
an exception that lateinit variables may not have been initialized yet.
This change fixes that by using onTearDown() next to the initialation of
lateinit and only clean up if they have been initialized.
Test: atest CommunalBackupHelperTest
Bug: 379255212
Flag: EXEMPT improve unit test only
Change-Id: I3205dba6abcc7b91d145c5f5432b59992515c60b
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions