commit | efbd4adaf39495f02de043866e3980d0e8cf08d2 | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@google.com> | Wed Nov 08 11:07:06 2017 -0800 |
committer | Enrico Granata <egranata@google.com> | Wed Nov 08 15:16:46 2017 -0800 |
tree | 187391aff82b383a451a3e5d4b4c7dfc12f7dc3d | |
parent | 4b1ccfe5138940139fb7bf459c542cf2d4f0d6ee [diff] |
Fix OsTest for different possible setgroups() return values. setgroups() can return EINVAL if the number of groups passed is > NGROUPS_MAX. This means that the call in this test could fail with EINVAL is NGROUPS_MAX is == 0. Address this possibility by checking and choosing an appropriate error code to test against. Bug: 69023954 Test: vogar OsTest Change-Id: Id03cdb73a9cc3df31f22b25dc28079aac609a35f