From d7536874b85c33b770a0b249bcbeb499cd631d75 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 30 Jan 2018 06:28:49 +0100 Subject: nss: Adjust tests to use nss_files only --- nss/bug17079.c | 3 +++ nss/tst-nss-getpwent.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'nss') diff --git a/nss/bug17079.c b/nss/bug17079.c index f3e88b3..5f358f8 100644 --- a/nss/bug17079.c +++ b/nss/bug17079.c @@ -17,6 +17,7 @@ . */ #include +#include #include #include #include @@ -213,6 +214,8 @@ test_buffer_size (size_t buffer_size) int do_test (void) { + __nss_configure_lookup ("passwd", "files"); + if (!init_test_items ()) return 1; printf ("info: %d test items\n", test_count); diff --git a/nss/tst-nss-getpwent.c b/nss/tst-nss-getpwent.c index cdaef76..ff9c3d0 100644 --- a/nss/tst-nss-getpwent.c +++ b/nss/tst-nss-getpwent.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see . */ +#include #include #include #include @@ -26,6 +27,8 @@ int do_test (void) { + __nss_configure_lookup ("passwd", "files"); + /* Count the number of entries in the password database, and fetch data from the first and last entries. */ size_t count = 0; -- cgit v1.1