Mercurial > hg > octave-nkf > gnulib-hg
changeset 13743:ebf34d732f15
More tests for module 'sys_wait'.
* modules/sys_wait-c++-tests: New file.
* tests/test-sys_wait-c++.cc: New file.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 29 Sep 2010 15:44:19 +0200 |
parents | 886a8812ecd0 |
children | 6e37c8296aa3 |
files | ChangeLog modules/sys_wait-c++-tests tests/test-sys_wait-c++.cc |
diffstat | 3 files changed, 58 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-29 Bruno Haible <bruno@clisp.org> + + 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 <tmacchant5@yahoo.co.jp>. + 2010-09-29 Bruno Haible <bruno@clisp.org> New module 'waitpid'.
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
new file mode 100644 --- /dev/null +++ b/tests/test-sys_wait-c++.cc @@ -0,0 +1,33 @@ +/* Test of <sys/wait.h> 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 <http://www.gnu.org/licenses/>. */ + +/* Written by Bruno Haible <bruno@clisp.org>, 2010. */ + +#define GNULIB_NAMESPACE gnulib +#include <config.h> + +#include <sys/wait.h> + +#include "signature.h" + + +SIGNATURE_CHECK (GNULIB_NAMESPACE::waitpid, pid_t, (pid_t, int *, int)); + + +int +main () +{ +}