glibc/nss/tst-nss-static.c
Paul Pluzhnikov 62470f605e 2012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #13895]
	* nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
	extra indirection.
	* nss/Makefile (tests-static, tests): Add tst-nss-static.
	* nss/tst-nss-static.c: New.
2012-04-06 13:49:35 -07:00

16 lines
212 B
C

/* glibc test for static NSS. */
#include <stdio.h>
#define TEST_FUNCTION do_test ()
static int
do_test (void)
{
struct passwd *pw;
pw = getpwuid(0);
return pw == NULL;
}
#include "../test-skeleton.c"