Classes | Functions
test_poll_set.cpp File Reference
#include <gtest/gtest.h>
#include "ros/poll_set.h"
#include <sys/socket.h>
#include <fcntl.h>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
Include dependency graph for test_poll_set.cpp:

Go to the source code of this file.

Classes

class  Poller
 
class  SocketHelper
 

Functions

void addDelManyTimesThread (PollSet *ps, SocketHelper *sh1, SocketHelper *sh2, boost::barrier *barrier, int count, volatile bool *done)
 
void addThread (PollSet *ps, SocketHelper *sh, boost::barrier *barrier)
 
void delThread (PollSet *ps, SocketHelper *sh, boost::barrier *barrier)
 
int main (int argc, char **argv)
 
 TEST_F (Poller, read)
 
 TEST_F (Poller, write)
 
 TEST_F (Poller, readAndWrite)
 
 TEST_F (Poller, multiAddDel)
 
 TEST_F (Poller, DISABLED_addDelMultiThread)
 
 TEST_F (Poller, updateWhileAddDel)
 
 TEST_F (Poller, signal)
 

Function Documentation

void addDelManyTimesThread ( PollSet ps,
SocketHelper sh1,
SocketHelper sh2,
boost::barrier *  barrier,
int  count,
volatile bool *  done 
)

Definition at line 330 of file test_poll_set.cpp.

void addThread ( PollSet ps,
SocketHelper sh,
boost::barrier *  barrier 
)

Definition at line 241 of file test_poll_set.cpp.

void delThread ( PollSet ps,
SocketHelper sh,
boost::barrier *  barrier 
)

Definition at line 250 of file test_poll_set.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 397 of file test_poll_set.cpp.

TEST_F ( Poller  ,
read   
)

Definition at line 136 of file test_poll_set.cpp.

TEST_F ( Poller  ,
write   
)

Definition at line 170 of file test_poll_set.cpp.

TEST_F ( Poller  ,
readAndWrite   
)

Definition at line 187 of file test_poll_set.cpp.

TEST_F ( Poller  ,
multiAddDel   
)

Definition at line 225 of file test_poll_set.cpp.

TEST_F ( Poller  ,
DISABLED_addDelMultiThread   
)

This test has been disabled. The underlying logic which it tests has three different implementations (poll, epoll, Windows), and development of the epoll version exposed that the test was validating a buggy aspect of the original poll version. To reenable this test, the poll version and the test would both have to be updated.

For more discussion, see: https://github.com/ros/ros_comm/pull/1217

Definition at line 268 of file test_poll_set.cpp.

TEST_F ( Poller  ,
updateWhileAddDel   
)

Definition at line 360 of file test_poll_set.cpp.

TEST_F ( Poller  ,
signal   
)

Definition at line 384 of file test_poll_set.cpp.



test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:46