[Bug/Feature] Test failed with "Reading pipe error" message.
[Cause] SEGFAULT in a test thread.
[Solution] Fixed usage of std::vector::erase.
[Verification] Build, install and run tests on smack and non-smack env.
tc_unit_03_04_security_server_check_privilege_neg is OK.
Change-Id: I79d8c7f39dcabb988b27ac902f211dab68b6cde8
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
getgroups(ngroups, groups.data());
// remove group from the list
- groups.erase(std::remove(groups.begin(), groups.end(), new_group_id));
+ groups.erase(std::remove(groups.begin(), groups.end(), new_group_id), groups.end());
if (groups.size() != (size_t)ngroups) {
// apply change