static void
test_connection (void *cls,
+ struct GNUNET_TESTBED_RunHandle *h,
unsigned int num_peers,
- struct GNUNET_TESTBED_Peer **peers)
+ struct GNUNET_TESTBED_Peer **peers,
+ unsigned int links_succeeded,
+ unsigned int links_failed)
{
- if (4 != num_peers)
+ if ( (4 != num_peers) || (0 != links_failed) )
{
fprintf (stderr, "Testbed failed to connect peers\n");
GNUNET_SCHEDULER_shutdown ();
}
ok = 0;
if (1)
+ {
GNUNET_SCHEDULER_shutdown ();
+ }
else
fprintf (stderr, "Test passed, press CTRL-C to shut down\n");
}