NEW FILE HEADER / COPYRIGHT FORMAT
[senf.git] / Socket / Protocols / UN / UNAddressing.test.cc
index b3b76e8..963486a 100644 (file)
@@ -1,6 +1,7 @@
-// $Id$
-//
 // Copyright (C) 2007 
+// Fraunhofer Institute for Open Communication Systems (FOKUS) 
+// Kompetenzzentrum NETwork research (NET)
+//     David Wagner <dw6@berlios.de>
 //
 // 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
@@ -26,7 +27,7 @@
 // Custom includes
 #include "UNAddressing.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../../../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #include <sys/socket.h>
 
 BOOST_AUTO_UNIT_TEST(unSocketAddress)
 {
-    std::string testS = "/tmp/senfTestSocket";
-    senf::UNSocketAddress addr (testS) ; 
-    int mySock = socket(AF_UNIX, SOCK_DGRAM, 0); 
-    if (bind(mySock, addr.sockaddr_p(), addr.sockaddr_len())) { 
-        std::cout << "Error while binding name to unix socket" << std::endl;
-    }
+//  TODO: muss wieder rein.     
+//    std::string testS = "/tmp/senfTestSocket";
+//    senf::UNSocketAddress addr (testS) ; 
+//    int mySock = socket(AF_UNIX, SOCK_DGRAM, 0); 
+//    if (bind(mySock, addr.sockaddr_p(), addr.sockaddr_len())) { 
+//        std::cout << "Error while binding name to unix socket" << std::endl;
+//    }
 
 }