// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@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
#include <unistd.h>
#include "FileHandle.hh"
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
{
int rv = ::open(name.c_str(),O_RDWR|O_NONBLOCK) ;
if (rv<0)
- throw senf::SystemException(errno);
+ senf::throwErrno();
fd(rv);
}
};
if (fcntl(fds[1],F_SETFL,flags|O_NONBLOCK) == -1)
BOOST_FAIL(strerror(errno));
char buffer[1024];
+ ::memset(buffer, 0, sizeof(buffer));
while (write(fds[1],buffer,1024) == 1024) ;
FHandle fh2(fds[1]);