Mercurial > gnulib
changeset 38543:e2551594df0d
sys_resource-c++-tests: New module.
* tests/test-sys_resource-c++.cc: New file.
(getrusage): Declare, missing since 2012-04-13.
* modules/sys_resource-c++-tests: New file.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 05 May 2017 22:43:41 +0200 |
parents | 20ae5449b984 |
children | b14e6c2942ae |
files | ChangeLog modules/sys_resource-c++-tests tests/test-sys_resource-c++.cc |
diffstat | 3 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 05 22:40:19 2017 +0200 +++ b/ChangeLog Fri May 05 22:43:41 2017 +0200 @@ -1,3 +1,10 @@ +2017-05-05 Bruno Haible <bruno@clisp.org> + + sys_resource-c++-tests: New module. + * tests/test-sys_resource-c++.cc: New file. + (getrusage): Declare, missing since 2012-04-13. + * modules/sys_resource-c++-tests: New file. + 2017-05-05 Bruno Haible <bruno@clisp.org> strings-c++-tests: New module.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/sys_resource-c++-tests Fri May 05 22:43:41 2017 +0200 @@ -0,0 +1,18 @@ +Files: +tests/test-sys_resource-c++.cc +tests/signature.h + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-sys_resource-c++ +check_PROGRAMS += test-sys_resource-c++ +test_sys_resource_c___SOURCES = test-sys_resource-c++.cc +endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-sys_resource-c++.cc Fri May 05 22:43:41 2017 +0200 @@ -0,0 +1,35 @@ +/* Test of <sys/resource.h> substitute in C++ mode. + Copyright (C) 2010-2017 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 <http://www.gnu.org/licenses/>. */ + +/* Written by Bruno Haible <bruno@clisp.org>, 2017. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <sys/resource.h> + +#include "signature.h" + + +#if GNULIB_TEST_GETRUSAGE +SIGNATURE_CHECK (GNULIB_NAMESPACE::getrusage, int, (int, struct rusage *)); +#endif + + +int +main () +{ +}