From ae5c498d93d049d9574d3f8f18e62cac64cbdf5c Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 17 Jul 2017 15:50:43 -0400 Subject: Extend NSS test suite * nss/nss_test.h: New. * nss/nss_test1.h: Rewrite to use test-provided data. Add group tests. Parameterize to allow multiple instances. * nss/nss_test2.h: New. Second instance. * nss/nss_test.ver: New. * nss/nss_test1.c: Update to use new framework. * nss/nss_test2.c: New. * nss/nss_test3.c: New. * nss/nss_test4.c: New. * nss/nss_test5.c: New. * nss/Makefile: Build new tests. * shlib-versions: Add libnss_test2. --- nss/nss_test2.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nss/nss_test2.c (limited to 'nss/nss_test2.c') diff --git a/nss/nss_test2.c b/nss/nss_test2.c new file mode 100644 index 0000000000..0169344e5f --- /dev/null +++ b/nss/nss_test2.c @@ -0,0 +1,20 @@ +/* Instance of a generic NSS service provider. See nss_test.h for usage. + Copyright (C) 2017 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#define NAME(x) NAME_(x,test2) +#include "nss_test1.c" -- cgit 1.4.1