diff options
author | DJ Delorie <dj@delorie.com> | 2017-07-17 15:50:43 -0400 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2017-07-17 15:52:44 -0400 |
commit | ae5c498d93d049d9574d3f8f18e62cac64cbdf5c (patch) | |
tree | 986e51e120bd42c02fe2ee5a4b04ca13951600e3 /nss/nss_test2.c | |
parent | 48145e1c7dabaeab7ad8346d14f910cdeb6bc910 (diff) | |
download | glibc-ae5c498d93d049d9574d3f8f18e62cac64cbdf5c.zip glibc-ae5c498d93d049d9574d3f8f18e62cac64cbdf5c.tar.gz glibc-ae5c498d93d049d9574d3f8f18e62cac64cbdf5c.tar.bz2 |
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.
Diffstat (limited to 'nss/nss_test2.c')
-rw-r--r-- | nss/nss_test2.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nss/nss_test2.c b/nss/nss_test2.c new file mode 100644 index 0000000..0169344 --- /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 + <http://www.gnu.org/licenses/>. */ + +#define NAME(x) NAME_(x,test2) +#include "nss_test1.c" |