Skip to content

Commit

Permalink
tests: Fix build of libxipc stress test tool (disable batching logic)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jun 18, 2010
1 parent aedaca0 commit 1aff443
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xorp/libxipc/tests/test_xrl_sender.cc
Expand Up @@ -326,6 +326,7 @@ TestSender::start_transmission_cb(const XrlError& xrl_error)
}
}

#if 0
void
TestSender::send_batch()
{
Expand Down Expand Up @@ -394,6 +395,8 @@ TestSender::send_batch_do(unsigned xrls)
_eventloop.run();
}

// TODO: This was removed from the core, comments claimed it never
// worked?? --Ben
bool
TestSender::send_batch_task()
{
Expand Down Expand Up @@ -439,6 +442,7 @@ TestSender::send_batch_cb(const XrlError& xrl_error)

_batch_got++;
}
#endif

void
TestSender::send_next()
Expand Down Expand Up @@ -700,8 +704,9 @@ test_xrls_sender_main(const char* finder_hostname, uint16_t finder_port)
}

if (g_send_method == SEND_METHOD_BATCH) {
test_sender.send_batch();
exit(0);
cerr << "ERROR: Batch sending not supported!\n";
//test_sender.send_batch();
exit(1);
}

//
Expand Down

0 comments on commit 1aff443

Please sign in to comment.