X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ftest_pipe.cpp;h=94e2d8b900b7cd3c1e4caa6796f55e5a1909a102;hb=0ab6e8aba7de1ea5cf109de175f56c9d8f7f49bc;hp=162e673b13ab5014b63aa2fc640c8d6598249c9c;hpb=2b84829b69bc668745a1fed29e8a0447eecce811;p=metaproxy-moved-to-github.git diff --git a/src/test_pipe.cpp b/src/test_pipe.cpp index 162e673..94e2d8b 100644 --- a/src/test_pipe.cpp +++ b/src/test_pipe.cpp @@ -1,7 +1,22 @@ -/* $Id: test_pipe.cpp,v 1.9 2007-02-19 12:51:08 adam Exp $ +/* $Id: test_pipe.cpp,v 1.12 2007-11-02 17:47:41 adam Exp $ Copyright (c) 2005-2007, Index Data. - See the LICENSE file for details +This file is part of Metaproxy. + +Metaproxy 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 2, or (at your option) any later +version. + +Metaproxy 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 Metaproxy; see the file LICENSE. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ #include "config.hpp" @@ -27,6 +42,7 @@ #include "pipe.hpp" #define BOOST_AUTO_TEST_MAIN +#define BOOST_TEST_DYN_LINK #include using namespace boost::unit_test; @@ -62,7 +78,7 @@ Timer::Timer(yazpp_1::ISocketObservable *obs, { std::cout << "Error write: "<< strerror(errno) << std::endl; } - BOOST_CHECK_EQUAL(write(m_pipe.write_fd(), "", 1), 1); + BOOST_CHECK_EQUAL(r, 1); } void Timer::socketNotify(int event) @@ -88,7 +104,7 @@ void Timer::socketNotify(int event) } } -BOOST_AUTO_UNIT_TEST( test_pipe_1 ) +BOOST_AUTO_TEST_CASE( test_pipe_1 ) { yazpp_1::SocketManager mySocketManager;