diff options
author | Orion Hodson <oth@google.com> | 2022-10-31 07:34:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-10-31 07:34:05 +0000 |
commit | d06e75b7e304dd6e3017d61bc5c9b92857b41b89 (patch) | |
tree | 888f9963fd61e17878d35e6a18df7a41bb950287 | |
parent | 159a0e884f639321811722251bf712ecaa50522f (diff) | |
parent | f5fd5adf04aa35983a383085c786e69fd2257eba (diff) | |
download | bionic-d06e75b7e304dd6e3017d61bc5c9b92857b41b89.tar.gz |
Merge "Fix-up for change in pwd/grp ids for PRNG seeder daemon" into android13-tests-dev
-rw-r--r-- | tests/grp_pwd_test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/grp_pwd_test.cpp b/tests/grp_pwd_test.cpp index bf65720f9..65a54a659 100644 --- a/tests/grp_pwd_test.cpp +++ b/tests/grp_pwd_test.cpp @@ -441,6 +441,17 @@ static void expect_ids(T ids, bool is_group) { } return result; }; + + // AID_PRNG_SEEDER (1092) was added in TM-QPR2, but CTS is shared + // across Android 13 versions so we may or may not find it in this + // test (b/253185870). + if (android::base::GetIntProperty("ro.build.version.sdk", 0) == __ANDROID_API_T__) { +#ifndef AID_PRNG_SEEDER +#define AID_PRNG_SEEDER 1092 +#endif + ids.erase(AID_PRNG_SEEDER); + expected_ids.erase(AID_PRNG_SEEDER); + } EXPECT_EQ(expected_ids, ids) << return_differences(); } #endif |