X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.test.cc;h=60ba3ba60eab29eee968cede0ff5cac933db3532;hb=a1fdb7bb122f0b05be809a922d4b7ef5e125fa67;hp=04141a9a361a75f13094e8b5ce7b0b40f5214480;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/FileHandle.test.cc b/Socket/FileHandle.test.cc index 04141a9..60ba3ba 100644 --- a/Socket/FileHandle.test.cc +++ b/Socket/FileHandle.test.cc @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -20,7 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Unit tests +/** \file + \brief FileHandle unit tests */ //#include "FileHandle.test.hh" //#include "FileHandle.test.ih" @@ -51,7 +52,7 @@ namespace { { int rv = ::open(name.c_str(),O_RDWR|O_NONBLOCK) ; if (rv<0) - senf::throwErrno(); + throw senf::SystemException(); fd(rv); } }; @@ -73,9 +74,9 @@ BOOST_AUTO_UNIT_TEST(fileHandle) BOOST_CHECK_EQUAL(fh.fd(), fh2.fd()); BOOST_CHECK(fh.writeable()); - BOOST_CHECK_NO_THROW(fh.close()); + SENF_CHECK_NO_THROW(fh.close()); BOOST_CHECK_THROW(fh.close(),senf::SystemException); - BOOST_CHECK_NO_THROW(fh.terminate()); + SENF_CHECK_NO_THROW(fh.terminate()); } {