X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_invite.c;h=af02cb4770469f05fb8389718babbf3959c98e28;hp=c0f13c58c2a68ec892e5be3b99397376ccf0ed34;hb=3a73d524bf6ea79f8badb83ec15863a546602b7b;hpb=dd2cf09a9ac438b65a1f4c9dcff8d87a2b504538 diff --git a/test/blackbox/run_blackbox_tests/test_cases_invite.c b/test/blackbox/run_blackbox_tests/test_cases_invite.c index c0f13c58..af02cb47 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_invite.c +++ b/test/blackbox/run_blackbox_tests/test_cases_invite.c @@ -82,7 +82,7 @@ static bool test_invite_01(void) { assert(mesh_handle); meshlink_set_log_cb(mesh_handle, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); - char *invitation = meshlink_invite(mesh_handle, "new"); + char *invitation = meshlink_invite(mesh_handle, NULL, "new"); assert_int_equal(invitation, NULL); free(invitation); @@ -104,7 +104,7 @@ static void test_case_invite_02(void **state) { */ static bool test_invite_02(void) { // Trying to generate INVITATION by passing NULL as mesh link handle - char *invitation = meshlink_invite(NULL, "nut"); + char *invitation = meshlink_invite(NULL, NULL, "nut"); assert_int_equal(invitation, NULL); return true; @@ -132,7 +132,7 @@ static bool test_invite_03(void) { meshlink_set_log_cb(mesh_handle, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); // Trying to generate INVITATION by passing NULL as mesh link handle - char *invitation = meshlink_invite(mesh_handle, NULL); + char *invitation = meshlink_invite(mesh_handle, NULL, NULL); assert_int_equal(invitation, NULL); meshlink_close(mesh_handle); @@ -165,12 +165,12 @@ static bool test_invite_04(void) { char *hostname1 = "127.1.1.1"; bool ret = meshlink_add_address(mesh_handle, hostname1); - char *invitation = meshlink_invite(mesh_handle, "foo"); + char *invitation = meshlink_invite(mesh_handle, NULL, "foo"); assert_int_not_equal(strstr(invitation, hostname1), NULL); char *hostname2 = "127.1.2.3"; ret = meshlink_add_address(mesh_handle, hostname2); - invitation = meshlink_invite(mesh_handle, "bar"); + invitation = meshlink_invite(mesh_handle, NULL, "bar"); // Verify we have both the added addresses assert_int_not_equal(strstr(invitation, hostname1), NULL);