>From 213cd443c2fdae0471e30546755e3cd15fcf7d9d Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sun, 15 Sep 2019 18:58:42 +0200 Subject: [PATCH 2/3] access: Add tests. * tests/test-access.c: New file. * modules/access-tests: New file. --- ChangeLog | 4 +++ modules/access-tests | 13 +++++++++ tests/test-access.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 modules/access-tests create mode 100644 tests/test-access.c diff --git a/ChangeLog b/ChangeLog index b85c3dd..394dcd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2019-09-15 Bruno Haible + access: Add tests. + * tests/test-access.c: New file. + * modules/access-tests: New file. + access: New module. * lib/unistd.in.h (access): New declaration. * lib/access.c: New file. diff --git a/modules/access-tests b/modules/access-tests new file mode 100644 index 0000000..082aeb5 --- /dev/null +++ b/modules/access-tests @@ -0,0 +1,13 @@ +Files: +tests/test-access.c +tests/signature.h +tests/macros.h + +Depends-on: +creat + +configure.ac: + +Makefile.am: +TESTS += test-access +check_PROGRAMS += test-access diff --git a/tests/test-access.c b/tests/test-access.c new file mode 100644 index 0000000..7af7f9a --- /dev/null +++ b/tests/test-access.c @@ -0,0 +1,80 @@ +/* Tests of access. + Copyright (C) 2019 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see