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 UnixCommToServer()
{
- pid_t pid;
string data;
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void UnixCommToServerAndBack()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void UnixCommToServerAndBackBig()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void IPCommToServer()
{
- pid_t pid;
string data;
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void IPCommToServerAndBack()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
void IPCommToServerAndBackBig()
{
- pid_t pid;
-
- switch(pid=fork())
+ switch(child_pid=fork())
{
case -1:
{
}
}
} // eo IPCommToServerAndBackBig()
-
-
-
};
CPPUNIT_TEST_SUITE_REGISTRATION(test_comm);