>From f614b66a4caa8ec48a587f87c40139cfc69707af Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 22:43:41 +0200 Subject: [PATCH 10/16] 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. --- ChangeLog | 7 +++++++ modules/sys_resource-c++-tests | 18 ++++++++++++++++++ tests/test-sys_resource-c++.cc | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 modules/sys_resource-c++-tests create mode 100644 tests/test-sys_resource-c++.cc diff --git a/ChangeLog b/ChangeLog index cb7257a..f3513f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2017-05-05 Bruno Haible + 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 + strings-c++-tests: New module. * tests/test-strings-c++.cc: New file. (ffs): Declare, missing since 2011-07-12. diff --git a/modules/sys_resource-c++-tests b/modules/sys_resource-c++-tests new file mode 100644 index 0000000..89c9893 --- /dev/null +++ b/modules/sys_resource-c++-tests @@ -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 diff --git a/tests/test-sys_resource-c++.cc b/tests/test-sys_resource-c++.cc new file mode 100644 index 0000000..25d476c --- /dev/null +++ b/tests/test-sys_resource-c++.cc @@ -0,0 +1,35 @@ +/* Test of 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 . */ + +/* Written by Bruno Haible , 2017. */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include + +#include "signature.h" + + +#if GNULIB_TEST_GETRUSAGE +SIGNATURE_CHECK (GNULIB_NAMESPACE::getrusage, int, (int, struct rusage *)); +#endif + + +int +main () +{ +} -- 2.7.4