From 62470f605ed931f88fb1993f4440d5bb02afa2b1 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Fri, 6 Apr 2012 13:49:35 -0700 Subject: 2012-04-06 Paul Pluzhnikov [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. --- nss/tst-nss-static.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nss/tst-nss-static.c (limited to 'nss/tst-nss-static.c') diff --git a/nss/tst-nss-static.c b/nss/tst-nss-static.c new file mode 100644 index 0000000000..98cf073deb --- /dev/null +++ b/nss/tst-nss-static.c @@ -0,0 +1,15 @@ +/* glibc test for static NSS. */ +#include + +#define TEST_FUNCTION do_test () +static int +do_test (void) +{ + struct passwd *pw; + + pw = getpwuid(0); + return pw == NULL; +} + + +#include "../test-skeleton.c" -- cgit v1.2.3