Fix Security Server tc_unit_03_04_security_server_check_privilege_neg.
[platform/core/test/security-tests.git] / tests / common / tests_common.cpp
index 3f99946..f7d1c52 100644 (file)
@@ -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