switch (test)
{
case TEST_MEMBER_JOIN_REFUSE:
- // Test 3 starts here
+ // Test 3 starts here
member_join (TEST_MEMBER_JOIN_ADMIT);
break;
test = TEST_MEMBER_PART;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Test #%u: member_part()\n", test);
- // Test 10 starts here
+ // Test 10 starts here
GNUNET_SCHEDULER_add_now (&schedule_member_part, NULL);
}
static void
member_replay_ok ()
{
- // Execution of test 8 here
+ // Execution of test 8 here
test = TEST_MEMBER_REPLAY_OK;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Test #%u: member_replay_ok()\n", test);
switch (test)
{
case TEST_MEMBER_REPLAY_ERROR:
- // Test 8 starts here
+ // Test 8 starts here
GNUNET_MULTICAST_replay_response (rh, NULL, GNUNET_SYSERR);
member_replay_ok ();
break;
&member_pub_key, sizeof (member_pub_key)));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Test #%u: verify message content, take first 3 bytes: %.3s\n",
+ "Test #%u: verify message content, take first 3 bytes: %.3s\n",
test, (char *)&req[1]);
GNUNET_assert (0 == memcmp (&req[1], "abc", 3));
- // Test 7 starts here
+ // Test 7 starts here
member_replay_error ();
}
break;
case TEST_MEMBER_REPLAY_OK:
- // Test 9 starts here
+ // Test 9 starts here
GNUNET_assert (replay_fragment_id == GNUNET_ntohll (msg->fragment_id));
member_part ();
break;
{
case TEST_MEMBER_JOIN_REFUSE:
GNUNET_assert (0 == relay_count);
- // Test 3 starts here
+ // Test 3 starts here
GNUNET_SCHEDULER_add_now (&schedule_member_part, NULL);
break;
case TEST_MEMBER_JOIN_ADMIT:
GNUNET_assert (1 == relay_count);
GNUNET_assert (0 == memcmp (relays, &this_peer, sizeof (this_peer)));
- // Test 4 starts here
+ // Test 4 starts here
origin_to_all ();
break;
switch (test)
{
case TEST_MEMBER_JOIN_REFUSE:
- // Test 3 starts here
+ // Test 3 starts here
GNUNET_MULTICAST_join_decision (jh, GNUNET_NO, 0, NULL, join_resp);
break;
&member_cls);
}
-/**
+/**
* Test: Start a multicast group as origin
*/
static void
core_connected (void *cls, const struct GNUNET_PeerIdentity *my_identity)
{
this_peer = *my_identity;
-
+
// Test 1 starts here
origin_start ();
}