summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2023-06-06 11:54:09 +0100
committer Yasin Kilicdere <tyk@google.com> 2023-06-08 16:07:17 +0000
commit637363c858412402dfcffd1a24b70037a01d1d82 (patch)
treefa47909626006356f9a1fb11f841aceb7c943b54 /libs/androidfw/FileStream.cpp
parent847f098ac13f5507ff3a8bb926ccce845152b138 (diff)
Add assumptions to testRemoveUserWhenPossible_withProfiles.
This test method creates a user and adds profiles to it. Then after removing the user it asserts that the profiles are also removed. But, in case the profiles fail to be created, test was failing with a null pointer exception. This CL adds necessary assumptions to make sure it is possible to add profiles to the secondary user and skips otherwise instead of failing. Bug: 261468057 Test: atest com.android.server.pm.UserManagerTest#testRemoveUserWhenPossible_withProfiles Change-Id: I3c31b8c66f596192f6ddd1a3b04dac34ac8fe681
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions