diff --git a/tests/test_filter_ipc.cpp b/tests/test_filter_ipc.cpp index 60827a26..5d9fe81a 100644 --- a/tests/test_filter_ipc.cpp +++ b/tests/test_filter_ipc.cpp @@ -122,8 +122,10 @@ void init_groups () supgroup = group; notgroup = group + 1; for (int i = 0; i < ngroups; i++) { - if (supgroup == group && group != groups[i]) - supgroup = groups[i]; + if (supgroup == group && group != groups[i]) { + if (getgrgid (groups[i])) + supgroup = groups[i]; + } if (notgroup <= groups[i]) notgroup = groups[i] + 1; } diff --git a/tests/testutil.hpp b/tests/testutil.hpp index 69b7fe54..b0f0d77f 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -78,8 +78,10 @@ #include #include #include +#include #include #include +#include #include #include #include