# HG changeset patch # User Bruno Haible # Date 1285767859 -7200 # Node ID ebf34d732f1537c84ebc39e0c41fb2df4f217e1b # Parent 886a8812ecd0421ad0a8bb11d70d53036a69ab9a More tests for module 'sys_wait'. * modules/sys_wait-c++-tests: New file. * tests/test-sys_wait-c++.cc: New file. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-29 Bruno Haible + + More tests for module 'sys_wait'. + * modules/sys_wait-c++-tests: New file. + * tests/test-sys_wait-c++.cc: New file. + Reported by Tatsuro MATSUOKA . + 2010-09-29 Bruno Haible New module 'waitpid'. diff --git a/modules/sys_wait-c++-tests b/modules/sys_wait-c++-tests new file mode 100644 --- /dev/null +++ b/modules/sys_wait-c++-tests @@ -0,0 +1,18 @@ +Files: +tests/test-sys_wait-c++.cc +tests/signature.h + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-sys_wait-c++ +check_PROGRAMS += test-sys_wait-c++ +test_sys_wait_c___SOURCES = test-sys_wait-c++.cc +endif diff --git a/tests/test-sys_wait-c++.cc b/tests/test-sys_wait-c++.cc new file mode 100644 --- /dev/null +++ b/tests/test-sys_wait-c++.cc @@ -0,0 +1,33 @@ +/* Test of substitute in C++ mode. + Copyright (C) 2010 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 , 2010. */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include + +#include "signature.h" + + +SIGNATURE_CHECK (GNULIB_NAMESPACE::waitpid, pid_t, (pid_t, int *, int)); + + +int +main () +{ +}