Fix the PORT_ALLOC failure of save_compatibility_test.

`tox_new_log` has a much larger range of ports it can select from.
This commit is contained in:
iphydf 2018-08-25 22:28:38 +00:00
parent e99c13120f
commit 17e8195a8f
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -78,8 +78,9 @@ static void test_save_compatibility(const char *save_path)
options.savedata_length = size;
options.savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE;
size_t index = 0;
Tox_Err_New err;
Tox *tox = tox_new(&options, &err);
Tox *tox = tox_new_log(&options, &err, &index);
ck_assert_msg(tox, "failed to create tox, error number: %d", err);
free(save_data);