mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
e99c13120f
commit
17e8195a8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user