torture_comment(tctx, "Testing setpwent\n");
setpwent();
+#ifdef HAVE_GETPWENT_R /* getpwent_r not supported on macOS */
while (1) {
torture_comment(tctx, "Testing getpwent_r\n");
num_pwd++;
}
}
+#endif /* getpwent_r not supported on macOS */
torture_comment(tctx, "Testing endpwent\n");
endpwent();
torture_comment(tctx, "Testing setgrent\n");
setgrent();
+#ifdef HAVE_GETGRENT_R /* getgrent_r not supported on macOS */
while (1) {
torture_comment(tctx, "Testing getgrent_r\n");
num_grp++;
}
}
+#endif /* getgrent_r not supported on macOS */
torture_comment(tctx, "Testing endgrent\n");
endgrent();