From 3a180ba89dba9fd5c45ed43b04cbde5e6765853a Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Sat, 6 Sep 2014 22:28:58 +0300 Subject: [PATCH] fix getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer) --- CHANGES | 5 +++++ tests/daemon_tests.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b634745..c1edd11 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +1.13 / + + - Fix: getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer) + + 1.12 / 30-Aug-14 - Fix: Memory allocation when zero interfaces are available, also lo needed diff --git a/tests/daemon_tests.c b/tests/daemon_tests.c index 4f06c8e..8e0b377 100644 --- a/tests/daemon_tests.c +++ b/tests/daemon_tests.c @@ -34,7 +34,7 @@ END_TEST START_TEST(getgroup_root_string) { -#if defined(__linux__) +#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) ck_assert_int_eq((int)getgroup("root"), 0); #else ck_assert_int_eq((int)getgroup("wheel"), 0); -- 2.40.0