CPPUNIT_TEST_SUITE_END();
+ pid_t child_pid;
+
public:
void setUp()
{ }
void tearDown()
- { }
+ {
+ // make sure the server-child is dead before the next test runs
+ kill(child_pid,SIGKILL);
+ sleep(1);
+ }
void send_raw_socket(string hello_string, socket_server* ss, int conn_id)
{
void simple_reconnect()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void reconnect_with_close()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void reconnect_buffer_complete()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void reconnect_buffer_several_complete()
{
- pid_t pid;
-
const int packets=3;
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void reconnect_buffer_no_incomplete1()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void reconnect_buffer_no_incomplete2()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{