Add 'unflatten' to doxygen/dot processing
[senf.git] / Socket / FileHandle.test.cc
index e73f047..60ba3ba 100644 (file)
@@ -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());
         }
 
         {