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)
 
int create_socket_pair (int socket_pair[2])
 
void delThread (PollSet *ps, SocketHelper *sh, boost::barrier *barrier)
 
int main (int argc, char **argv)
 
int set_nonblocking (int &socket)
 
 TEST_F (Poller, DISABLED_addDelMultiThread)
 
 TEST_F (Poller, multiAddDel)
 
 TEST_F (Poller, read)
 
 TEST_F (Poller, readAndWrite)
 
 TEST_F (Poller, signal)
 
 TEST_F (Poller, updateWhileAddDel)
 
 TEST_F (Poller, write)
 

Function Documentation

◆ addDelManyTimesThread()

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

Definition at line 455 of file test_poll_set.cpp.

◆ addThread()

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

Definition at line 366 of file test_poll_set.cpp.

◆ create_socket_pair()

int create_socket_pair ( int  socket_pair[2])

Definition at line 66 of file test_poll_set.cpp.

◆ delThread()

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

Definition at line 375 of file test_poll_set.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 522 of file test_poll_set.cpp.

◆ set_nonblocking()

int set_nonblocking ( int &  socket)

Definition at line 49 of file test_poll_set.cpp.

◆ TEST_F() [1/7]

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 393 of file test_poll_set.cpp.

◆ TEST_F() [2/7]

TEST_F ( Poller  ,
multiAddDel   
)

Definition at line 350 of file test_poll_set.cpp.

◆ TEST_F() [3/7]

TEST_F ( Poller  ,
read   
)

Definition at line 261 of file test_poll_set.cpp.

◆ TEST_F() [4/7]

TEST_F ( Poller  ,
readAndWrite   
)

Definition at line 312 of file test_poll_set.cpp.

◆ TEST_F() [5/7]

TEST_F ( Poller  ,
signal   
)

Definition at line 509 of file test_poll_set.cpp.

◆ TEST_F() [6/7]

TEST_F ( Poller  ,
updateWhileAddDel   
)

Definition at line 485 of file test_poll_set.cpp.

◆ TEST_F() [7/7]

TEST_F ( Poller  ,
write   
)

Definition at line 295 of file test_poll_set.cpp.



test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas , Jacob Perron
autogenerated on Thu Nov 23 2023 04:02:03