From: Bruno Haible Date: Wed, 29 Sep 2010 13:44:19 +0000 (+0200) Subject: More tests for module 'sys_wait'. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f338bbd8f8178f039de8c916c10aa967a100f3f;p=pspp 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 index 6ca044488d..945e625404 100644 --- 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 index 0000000000..f94dfc507d --- /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 index 0000000000..6216375d61 --- /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 () +{ +}