From: Radoslaw Bartosiak Date: Wed, 16 Apr 2014 10:01:51 +0000 (+0200) Subject: Fix Security Server tc_unit_03_04_security_server_check_privilege_neg. X-Git-Tag: security-manager_5.5_testing~260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d812bc5154cd139409d6006c7109ccc9961f5c48;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Fix Security Server tc_unit_03_04_security_server_check_privilege_neg. [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 --- diff --git a/tests/common/tests_common.cpp b/tests/common/tests_common.cpp index 3f99946..f7d1c52 100644 --- a/tests/common/tests_common.cpp +++ b/tests/common/tests_common.cpp @@ -126,7 +126,7 @@ void remove_process_group(const char* group_name) 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