X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FTunTapSocketHandle.test.cc;h=fc0c98eb8ce12e55b108071b4717a7fed91025cf;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=35d6b72e67566438eeb4182fde121f914cdf92e3;hpb=b813eef433dec9158ca4983480c3fba31b153c22;p=senf.git diff --git a/Socket/Protocols/Raw/TunTapSocketHandle.test.cc b/Socket/Protocols/Raw/TunTapSocketHandle.test.cc index 35d6b72..fc0c98e 100644 --- a/Socket/Protocols/Raw/TunTapSocketHandle.test.cc +++ b/Socket/Protocols/Raw/TunTapSocketHandle.test.cc @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2008 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // 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 @@ -20,19 +20,20 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Unit tests +/** \file + \brief TunTapSocketHandle unit tests */ //#include "TunTapSocketHandle.test.hh" //#include "TunTapSocketHandle.test.ih" -#include "TunTapSocketHandle.hh" -#include "PacketSocketHandle.hh" - // Custom includes #include #include #include +#include "TunTapSocketHandle.hh" +#include "PacketSocketHandle.hh" + #include "../../../Utils/auto_unit_test.hh" #include @@ -45,19 +46,19 @@ BOOST_AUTO_UNIT_TEST(tapSocketHandle) BOOST_WARN_MESSAGE(false, "Cannot test senf::TunTapSocketHandle as non-root user"); return; } - + senf::TapSocketHandle handle ("tap_unittest"); int ret = system( "/sbin/ifconfig tap_unittest up"); BOOST_CHECK_EQUAL( WEXITSTATUS(ret), 0); - + senf::PacketSocketHandle sock; - BOOST_CHECK_NO_THROW( sock.bind(senf::LLSocketAddress("tap_unittest")) ); + SENF_CHECK_NO_THROW( sock.bind(senf::LLSocketAddress("tap_unittest")) ); } ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_ - + // Local Variables: // mode: c++ // fill-column: 100