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 ();
return;
}
ok = 0;
- if (0)
+ if (1)
+ {
GNUNET_SCHEDULER_shutdown ();
+ }
else
fprintf (stderr, "Test passed, press CTRL-C to shut down\n");
}
main (int argc, char *argv[])
{
ok = 1;
- (void) GNUNET_TESTBED_test_run ("test-transport-api-dv",
+ (void) GNUNET_TESTBED_test_run ("test-transport-dv",
"test_transport_dv_data.conf",
4,
0, NULL, NULL,
return ok;
}
-/* end of test_transport_api_dv.c */
+/* end of test_transport_dv.c */